forked from Duff89/parser_avito
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdto.py
More file actions
47 lines (40 loc) · 1.17 KB
/
Copy pathdto.py
File metadata and controls
47 lines (40 loc) · 1.17 KB
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
46
from dataclasses import dataclass, field
from typing import List, Optional
@dataclass
class Proxy:
proxy_string: str
change_ip_link: str
@dataclass
class ProxySplit:
ip_port: str
login: str
password: str
change_ip_link: str
@dataclass
class AvitoConfig:
urls: List[str]
proxy_string: Optional[str] = None
proxy_change_url: Optional[str] = None
keys_word_white_list: List[str] = field(default_factory=list)
keys_word_black_list: List[str] = field(default_factory=list)
seller_black_list: List[str] = field(default_factory=list)
count: int = 1
tg_token: Optional[str] = None
tg_chat_id: List[str] = None
vk_token: Optional[str] = None
vk_user_id: List[str] = None
max_price: int = 999_999_999
min_price: int = 0
geo: Optional[str] = None
max_age: int = 24 * 60 * 60
debug_mode: int = 0
pause_general: int = 60
pause_between_links: int = 5
max_count_of_retry: int = 5
ignore_reserv: bool = True
ignore_promotion: bool = False
one_time_start: bool = False
one_file_for_link: bool = False
parse_views: bool = False
save_xlsx: bool = True
use_webdriver: bool = True