Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

399.Batch download -- How to batch download images from some html pages and rename all?

User: shuaigemi -- 2010-01-18          << 398  400 >>
Hits: 591
Type: Batch download   
Search all Batch download examples
Description:
How to batch download images from some html pages and rename all the images?
Input Sample:
<img src="http://.../rgag.jpg" width="200" > (from file1.htm)
<img src="http://.../hrth.jpg" width="200" > (from file2.htm)
<img src="http://.../egse.jpg" width="200" > (from file3.htm)
Output Sample:
file1.jpg
file2.jpg
file3.jpg
Answer:
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
1. First of all, you need batch extract the image links from html pages.
(1)ctrl-h open 'Replace' dialog
* enter "search for pattern" to:

* enter "replace with pattern" to:

* uncheck "print unmatched unit" option
* between "Output Page" and "Output File" entry at right bottom, change the symbol ">" to ">> Append"
(2) Click "Batch..." button to open "Batch Runner" window
(3) Drag all html files from windows file explorer to "Batch Runner" window.
(4) Check "Set output file name" option, and change "${FILENAME}" to "links.txt" at the following entry.
(5) Click "Batch Replace" button, all the image links will be extracted and put to links.txt.

2. Download image files and rename: 
(1) Enter "Batch Runner" window again, click "Import List" to import links.txt you have made.
(2) Check "set output filename" option, change ${FILENAME} to file#.jpg
(3) Check "set output foler" option, set output folder
(4) Click "Copy/Download", done!
Download Script:  scripts/399.rst.zip

Screenshot 1:  Replace_Window


Screenshot 2:  Batch_Runner_Window


Similar Examples:
How to download image files from a serial of html pages? (68%)
How to batch download a group of web pages with increasing id? (66%)
How to batch download all rar and zip files from a webpage? (57%)
How to batch add pathname and extension for filename list? (56%)
How to download multiple webpages with part of url as filename? (53%)
How to download all webpages that linked from homepage? (53%)
How to download all html pages with images on some website? (53%)
How to search a subset of xml filenames and rename them? (53%)

Check Demo of Batch download
Keywords:
how to batch download images  batch download image  output foler  mad  explorer  img  image  symbol  extracte  sym  download image batch pattern  download all images from html  download images from html  image search batch download  download images and rename  download and rename images  search and replace images batch  batch download images html