forked from cita-bot/cita-bot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
example3.py
36 lines (34 loc) · 1.15 KB
/
example3.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
# import os
from bcncita import CustomerProfile, DocType, Office, OperationType, Province, try_cita
if __name__ == "__main__":
customer = CustomerProfile(
anticaptcha_api_key="... your key here ...",
anticaptcha_plugin_path="/Users/username/Downloads/anticaptcha-plugin_v0.50.crx",
auto_captcha=True,
auto_office=True,
chrome_driver_path="/usr/local/bin/chromedriver",
# chrome_profile_name="Profile 7",
# chrome_profile_path=f"{os.curdir}/chrome_profiles/",
save_artifacts=True,
telegram_token="... your key here ...",
# wait_exact_time = [
# [0, 0], # [minute, second]
# [15, 0],
# [30, 0],
# [45, 0],
# ],
province=Province.BARCELONA,
operation_code=OperationType.SOLICITUD,
doc_type=DocType.NIE,
doc_value="T1111111R",
country="RUSIA",
name="BORIS JOHNSON",
phone="600000000",
email="[email protected]",
year_of_birth="1980",
offices=[
Office.BARCELONA,
Office.MATARO,
],
)
try_cita(context=customer, cycles=100)