-
Notifications
You must be signed in to change notification settings - Fork 0
/
identificators.py
44 lines (39 loc) · 965 Bytes
/
identificators.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
"""
Enumeration calsse for identificators
Author: Tomas Fratrik
"""
from enum import Enum
class SimiliarImgPage(Enum):
CONTAINER = 'aah4tc'
CONTAINER_TAG = 'div'
WEBSITE = 'fjbPGe'
WEBSITE_TAG = 'span'
DESC = 'UAiK1e'
DESC_TAG = 'div'
IMGURL = 'ksQYvb'
IMGURL_TAG = 'div'
IMGURL_SRC = 'data-thumbnail-url'
LINK = 'GZrdsf'
LINK_TAG = 'a'
class SourceImgPage(Enum):
CONTAINER = 'pFjtkf'
CONTAINER_TAG = 'ul'
WEBSITE = 'ShWW9'
WEBSITE_TAG = 'div'
DESC = 'iJmjmd'
DESC_TAG = 'div'
IMGURL = 'AE4wZd'
IMGURL_TAG = 'img'
IMGURL_SRC = 'src'
LINK = 'lXbkTc'
LINK_TAG = 'a'
RESOLUTION = 'QJLLAc'
RESOLUTION_TAG = 'div'
class PageNav(Enum):
ACCEPT_COOKIES = 'L2AGLb'
SEARCH_BY_IMAGE = 'nDcEnd'
SEARCH_URL = 'cB9M7'
SEARCH_IMG = '//input[@type="file"]'
SEARCH_URL_BTN = 'Qwbd3'
# FIND_IMG_SRC = 'z3qvzf'
FIND_IMG_SRC = 'VfPpkd-LgbsSe-OWXEXe-INsAgc'