-
Notifications
You must be signed in to change notification settings - Fork 174
Expand file tree
/
Copy pathdto.py
More file actions
58 lines (51 loc) · 1.49 KB
/
dto.py
File metadata and controls
58 lines (51 loc) · 1.49 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
47
48
49
50
51
52
53
54
55
56
57
from dataclasses import dataclass, field
from pathlib import Path
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
use_bypass_api: bool = False
cookies_api_key: str = None
output_dir: Path = Path("result")
use_own_cookies: bool = False
parse_phone: bool = False
proxy_notifier: str = None
tg_only_text: bool = False
retry_delay: int = 5
timeout: int = 20
block_threshold: int = 3