MCPcopy Create free account

hub / github.com/Zhannyhong/cdc-bot / functions

Functions86 in github.com/Zhannyhong/cdc-bot

↓ 23 callersMethodinfo
(self, *output)
src/utils/log.py:60
↓ 19 callersMethodget_attribute_with_fieldtype
(self, attribute: str, field_type: str)
abstracts/cdc_abstract.py:105
↓ 15 callersMethoderror
(self, *output)
src/utils/log.py:66
↓ 13 callersMethodis_elem_present
(driver: selenium.webdriver, locator_type: str, locator: str, timeout: int = 2)
src/utils/common.py:11
↓ 11 callersMethodwait_for_elem
(driver: selenium.webdriver, locator_type: str, locator: str, timeout: int = 5)
src/utils/common.py:7
↓ 9 callersMethoddebug_if
(self, condition: bool, *output)
src/utils/log.py:76
↓ 9 callersMethodset_attribute_with_fieldtype
(self, attribute: str, field_type: str, value: Any)
abstracts/cdc_abstract.py:108
↓ 7 callersMethod_open_index
(self, path: str, sleep_delay=None)
src/website_handler.py:91
↓ 7 callersMethoddismiss_alert
(driver: selenium.webdriver, timeout: int = 2)
src/utils/common.py:17
↓ 7 callersMethodsend_notification_all
(self, title: str, msg: str)
src/utils/notifications/notification_manager.py:27
↓ 6 callersMethodget_attribute
(self, attribute: str)
abstracts/cdc_abstract.py:99
↓ 6 callersMethodwarning
(self, *output)
src/utils/log.py:69
↓ 5 callersMethodaccount_logout
(self)
src/website_handler.py:278
↓ 5 callersMethodconcat_tuple
(ouput_tuple)
src/utils/common.py:79
↓ 5 callersFunctionconvert_to_datetime
(date_str: str, time_str: str = None)
src/website_handler.py:17
↓ 5 callersMethoddebug
(self, *output)
src/utils/log.py:63
↓ 4 callersMethodappend_stack_if
(self, log_type, *output)
src/utils/log.py:51
↓ 4 callersMethodcheck_access_rights
(self, webpage: str)
src/website_handler.py:152
↓ 4 callersMethodcheck_call_depth
(self, call_depth: int)
src/website_handler.py:144
↓ 4 callersMethoddismiss_normal_captcha
(self, caller_identifier: str, solve_captcha: bool = False, secondary_alert_tim
src/website_handler.py:167
↓ 4 callersMethoderror
(*args)
src/utils/common.py:43
↓ 4 callersMethodget_all_available_sessions
(self, field_type: str, local_tb: Dict = None)
src/website_handler.py:529
↓ 4 callersMethodget_course_data
(self, course_element_id: Union[str, None] = None)
src/website_handler.py:203
↓ 3 callersMethodaccount_login
(self)
src/website_handler.py:244
↓ 3 callersMethodget_all_session_date_times
(self, field_type: str)
src/website_handler.py:511
↓ 3 callersMethodselect_course_from_idx
(self, course_data: Dict, course_idx: int)
src/website_handler.py:229
↓ 2 callersMethod_solve_captcha
(self, solve_callback: LambdaType, result_callback: LambdaType, debug_enabled: bool)
src/utils/captcha/two_captcha.py:32
↓ 2 callersMethodaccept_terms_and_conditions
(self)
src/website_handler.py:195
↓ 2 callersMethodcheck_key_existence_in_dict
(dic, key)
src/utils/common.py:72
↓ 2 callersMethodcheck_logged_in
(self)
src/website_handler.py:159
↓ 2 callersMethodclear_directory
(directory: str, log=DEFAULT_LOG)
src/utils/common.py:86
↓ 2 callersMethodget_date_formatter
(format_option, default_format_option)
src/utils/common.py:125
↓ 2 callersMethodget_earliest_time_slots
(self, sessions_data: Dict, length: int, field_type: str)
src/website_handler.py:107
↓ 2 callersMethodsave_captcha
(self, driver: webdriver, captcha_image_filepath: str)
src/utils/captcha/two_captcha.py:57
↓ 2 callersMethodselect_course_from_name
(self, course_data: Dict, course_name: str)
src/website_handler.py:220
↓ 2 callersMethodsend_mail
(self, mail_subject: str, mail_body, receiver: str = None)
src/utils/notifications/mail.py:32
↓ 2 callersMethodsend_msg
(self, msg_subject: str, msg_body: str, chat_id: int = None)
src/utils/notifications/telegram_bot.py:12
↓ 2 callersMethodsolve
(self, driver: webdriver, captcha_type: str = None, page_url: str = None, force_enable: bool = False,
src/utils/captcha/two_captcha.py:106
↓ 2 callersMethodupdate_earlier_sessions
(self, field_type: str)
src/website_handler.py:644
↓ 1 callersMethod__init__
(self, smtp_server: str, smtp_server_port: int, smtp_username: str, smtp_user_password: str, log: Log)
src/utils/notifications/mail.py:14
↓ 1 callersMethodcheck_if_earlier_available_sessions
(self, field_type: str)
src/website_handler.py:681
↓ 1 callersMethodcheck_if_same_sessions
(self, session0: Dict, session1: Dict)
src/website_handler.py:125
↓ 1 callersMethodcreate_notification_update
(self, field_type: str)
src/website_handler.py:604
↓ 1 callersMethodflush_notification_update
(self)
src/website_handler.py:666
↓ 1 callersMethodget_booked_lesson_date_time
(self)
src/website_handler.py:318
↓ 1 callersMethodget_datetime_now
(format_option: str = "ddmmyyyy hhmmss")
src/utils/common.py:136
↓ 1 callersMethodget_reserved_lesson_date_time
(self)
src/website_handler.py:288
↓ 1 callersMethodinit_config_with_default
(config: dict, default_config: dict)
src/utils/common.py:60
↓ 1 callersMethodis_date_in_view
(self, date_str: str, field_type: str)
src/website_handler.py:104
↓ 1 callersMethodload_config_from_yaml_file
(file_path: str, log=DEFAULT_LOG)
src/utils/common.py:49
↓ 1 callersMethodnormal_captcha
(self, driver: webdriver, page_url: str, debug_enabled: bool)
src/utils/captcha/two_captcha.py:72
↓ 1 callersMethodopen_booking_overview
(self)
src/website_handler.py:283
↓ 1 callersMethodopen_field_type_booking_page
(self, field_type: str)
src/website_handler.py:348
↓ 1 callersMethodopen_home_page
(self, sleep_delay: Union[int, None] = None)
src/website_handler.py:237
↓ 1 callersMethodrecaptcha_v2
(self, driver: webdriver, page_url: str, debug_enabled: bool)
src/utils/captcha/two_captcha.py:92
↓ 1 callersMethodremove_files
(files: list, log=DEFAULT_LOG)
src/utils/common.py:101
↓ 1 callersMethodreset_attributes_for_all_fieldtypes
(self)
abstracts/cdc_abstract.py:77
↓ 1 callersMethodreset_attributes_with_fieldtype
(self, field_type: str)
abstracts/cdc_abstract.py:81
↓ 1 callersMethodreset_state
(self)
src/website_handler.py:99
↓ 1 callersMethodset_default_recipient
(self, recipient: str)
src/utils/notifications/mail.py:60
Method__enter__
(self)
src/website_handler.py:85
Method__exit__
(self, *args)
src/website_handler.py:88
Method__init__
(self, username, password, headless=False)
abstracts/cdc_abstract.py:32
Method__init__
(self, login_credentials, captcha_solver, log, notification_manager, browser_config, program_config)
src/website_handler.py:26
Method__init__
(self, directory: str, name: str = "cdc-helper", config: dict = DEFAULT_CONFIG)
src/utils/log.py:20
Method__init__
(self, token: str, default_chat_id: int, log: Log)
src/utils/notifications/telegram_bot.py:7
Method__init__
(self, log, mail_config: dict = None, telegram_config: dict = None)
src/utils/notifications/notification_manager.py:6
Method__init__
(self, *args: object)
src/utils/notifications/mail.py:9
Method__init__
(self, log: Log, config: Dict = DEFAULT_CONFIG)
src/utils/captcha/two_captcha.py:25
Method__str__
(self)
abstracts/cdc_abstract.py:53
Method__str__
(self)
src/website_handler.py:96
Methodcheck_key_value_pair_exist_in_dict
(dic, key, value)
src/utils/common.py:66
Methoddebug
(*args)
src/utils/common.py:40
Methoderror_if
(self, condition: bool, *output)
src/utils/log.py:80
Methodget_date_now
(format_option: str = "dd-mm-yyyy")
src/utils/common.py:131
Methodinfo
(*args)
src/utils/common.py:37
Methodinfo_if
(self, condition: bool, *output)
src/utils/log.py:72
Methodopen_practical_lessons_booking_page
(self, field_type: str, call_depth: int = 0)
src/website_handler.py:379
Methodopen_practical_test_booking_page
(self, field_type: str, call_depth: int = 0)
src/website_handler.py:486
Methodopen_simulator_lessons_booking_page
(self, field_type: str, call_depth: int = 0)
src/website_handler.py:453
Methodopen_theory_test_booking_page
(self, field_type: str, call_depth: int = 0)
src/website_handler.py:351
Methodsend_notification_mail
(self, title: str, msg: str)
src/utils/notifications/notification_manager.py:42
Methodsend_notification_telegram
(self, title: str, msg: str)
src/utils/notifications/notification_manager.py:38
Methodset_attribute
(self, attribute: str, value: Any)
abstracts/cdc_abstract.py:102
Methodwarn
(*args)
src/utils/common.py:46
Methodwarning_if
(self, condition: bool, *output)
src/utils/log.py:84