You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
4
+
```python
5
+
from Crawler.Page import Page
6
+
from Crawler.Image import Image
7
+
from Image.Download import Download
8
+
9
+
if__name__=='__main__':
10
+
page = Page('http://fdfashionltd.com');
11
+
# fetch all the links (anchor) of this website
12
+
links = page.fetch_links();
13
+
14
+
for link in links:
15
+
# fetch all of the images of a web url
16
+
img = Image(link);
17
+
images = img.fetch_links();
18
+
# Download all of the images
19
+
download = Download(links=links)
20
+
download.start()
21
+
```
22
+
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.
0 commit comments