Crawling images from a webpage
First extract the url of images
craw.py
1 | import urllib2, re |
Then output the URLs to a text file
1 | $ python craw.py > content.txt |
Use shell script to download it
craw.sh
1 |
|
You’re done!
References:
This is my technical blog about programming, server setup & configuration, technical learning experience.
First extract the url of images
craw.py
1 | import urllib2, re |
Then output the URLs to a text file
1 | $ python craw.py > content.txt |
Use shell script to download it
craw.sh
1 |
|
You’re done!
References: