Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6886383
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T05:45:08+00:00 2026-05-27T05:45:08+00:00

I have a some simple html pages Test.html, test2.html, test3.html. This pages have some

  • 0

I have a some simple html pages Test.html, test2.html, test3.html. This pages have some links to images:

<img src="http://site.org/path/to/file/6c7f2.jpeg"/>

How download all images from this pages automatically, put near the html files and change links in html pages to local images?

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T05:45:09+00:00Added an answer on May 27, 2026 at 5:45 am

    Try the command $ wget -F -i <html_file>

    This will download every link contained in your <html_file> and put them in the current directory. I recommend you to read the manual of wget ($ man wget) under the OPTIONS section from where i extracted the folowing:

    -i file
    –input-file=file

      Read URLs from a local or external file.  If - is specified as file, URLs are
    read from the standard input.  (Use ./- to read from a file literally named -.)
    
      If this function is used, no URLs need be present on the command line.  If
    there are URLs both on the command line and in an input file, those on the
    command lines will be the first ones to be retrieved.  If --force-html is not
    specified, then file should consist of a series of URLs, one per line.
    
      However, if you specify --force-html, the document will be regarded as html.
    In that case you may have problems with relative links, which you can solve
    either by adding "<base href="url">" to the documents or by specifying
    --base=url on the command line.
    
      If the file is an external one, the document will be automatically treated as
    html if the Content-Type matches text/html. Furthermore,the file's location
    will be implicitly used as base href if none was specified.
    

    and the option:

    -F
    –force-html

      When input is read from a file, force it to be treated as an HTML file.
    This enables you to retrieve relative links from existing HTML files on
    your local disk, by adding "<base href="url">" to HTML, or using the
    --base command-line option.
    

    Also, I recommend you to read the --output-file option from the man page.

    This will only handle the download stuff… to make automatic changes on your html file i think you need other tools that shellscripting either does not provide or, if it does, are very complicated to use. I recommend doing a script in python that uses the mentioned command to the downloading stuff, and some python specialized library to process (parse) the file, and make the convenient changes.

    Good luck!!!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some content sliding here. http://www.smallsharptools.com/downloads/jQuery/Slider/slider.html The HTML structure is simple. There is
<p title=The test paragraph>This is a sample of some <b>HTML you might<br>have</b> in your
i have a site with a simple PHP-Navigation (using $_GET-Variables). HTML-code for navigation links
I have simple HTML code with some JavaScript. It looks like: <html> <head> <script
I have HTML + CSS text. I need some lib with simple function like
I have a simple form with some plain html input like bellow using ASP.NET
There are some HTML based games (ie bootleggers.us) that have a simple login form
I have a simple HTML page (ratings.html) that I'm trying to test using HtmlUnit.
I have a simple web site with two pages. One displays a list of
Let's say I have a test.html file with some example content: <table> <tr> <td>'Test'</td>

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.