-
Notifications
You must be signed in to change notification settings - Fork 0
/
scrapingConsts.py
45 lines (30 loc) · 900 Bytes
/
scrapingConsts.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
37
38
39
40
41
42
43
44
45
# base url
URL = 'https://telaviv.libraryreserve.com/'
# the main page url
MAIN_PAGE = '10/50/iw/Default.htm'
# RECENT_CLASS = 'ten mobile-four columns'
# tag for finding the recent books' link
RECENT_TAG = 'a'
# text for finding the recent books' link
RECENT_TEXT = 'נוסף לאחרונה'
# class for finding the titles
TITLES_CLASS = 'tc-title'
# tag for finding the titles
TITLES_TAG = 'a'
# class for finding the authors
AUTHOR_CLASS = 'tc-author'
# tag for finding the authors
AUTHOR_TAG = 'a'
# tag for finding the images' links
IMAGES_TAG = 'img'
# class for finding the images' link
IMAGES_CLASS = 'wtil-cover lzld'
# tag for finding the descriptions' links
DESCRIPTION_TAG = 'span'
# class for finding the descriptions' link
DESCRIPTION_CLASS = 'desc-exp-col'
# tag for finding links
LINK_TAG = 'a'
# class for finding links
LINK_CLASS = 'tc-title'
DISABLE_WARNINGS = True