-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
36 lines (33 loc) · 2.36 KB
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#encoding: UTF-8
# ************************************************************************** #
# #
# ::: :::::::: #
# main.py :+: :+: :+: #
# +:+ +:+ +:+ #
# By: ahabachi <ahabachi@student.1337.ma> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2023/05/21 08:09:40 by ahabachi #+# #+# #
# Updated: 2023/05/21 09:09:34 by ahabachi ### ########.fr #
# #
# ************************************************************************** #
# #
# █████████ ██████████ ██████████ ██████████ #
# ██ ██ ██ ██ ██ ██ #
# ██ ██ ██ ██ ██ #
# ██ ██ ██ ██ #
# ██ ██████████ ██████████ ██ #
# ██ ██ ██ ██ #
# ██ ██ ██ ██ #
# ██ ██ ██ ██ #
# ████████ ██████████ ██████████ ██ #
# #
# ************************************************************************** #
import sys
from Scraper import Scraper
reload(sys)
sys.setdefaultencoding('utf-8')
if (__name__ == '__main__'):
for product in ['shoes', 'bags', 'acc']:
link = 'http://' + product + '.ygshoes188.com/'
s = Scraper(product, link)
s.run()