https://github.com/digitaldreams/image-crawler-python
Find image from a web url and save it to your project folder
https://github.com/digitaldreams/image-crawler-python
image-crawler python-library python-script python3
Last synced: about 2 months ago
JSON representation
Find image from a web url and save it to your project folder
- Host: GitHub
- URL: https://github.com/digitaldreams/image-crawler-python
- Owner: digitaldreams
- Created: 2017-11-22T10:47:00.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-11-25T15:16:11.000Z (over 7 years ago)
- Last Synced: 2024-10-11T11:11:09.566Z (7 months ago)
- Topics: image-crawler, python-library, python-script, python3
- Language: Python
- Size: 60.5 KB
- Stars: 38
- Watchers: 2
- Forks: 13
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Multi threading image crawler in python 3
Find all the images from a website and download to your project folder. Purpose of this project is to learning coding in Python. Please do not use it to your production server yet.
```python
from Crawler.Page import Page
from Crawler.Image import Image
from Image.Download import Downloadif __name__ == '__main__':
page = Page('http://fdfashionltd.com');
# fetch all the links (anchor) of this website
links = page.fetch_links();for link in links:
# fetch all of the images of a web url
img = Image(link);
images = img.fetch_links();
# Download all of the images
download = Download(links=links)
download.start()
```
This code is to demonstrate the flow of the work. Please run main.py code because threading are used there. So program will be completed lot faster than this one.