Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/Hari-Nagarajan/fairgame
/ functions
Functions
110 in github.com/Hari-Nagarajan/fairgame
⨍
Functions
110
◇
Types & classes
8
↳
Endpoints
1
↓ 24 callers
Method
send_notification
(self, message, page_name, take_screenshot=True)
stores/amazon.py:1641
↓ 17 callers
Method
get_timeout
(self, timeout=DEFAULT_MAX_TIMEOUT)
stores/amazon.py:1648
↓ 15 callers
Method
wait_for_page_content_change
Utility to help manage selenium waiting for a page to load after an action, like a click
stores/amazon.py:1610
↓ 9 callers
Method
get_amazon_element
(self, key)
stores/amazon.py:1204
↓ 9 callers
Method
save_page_source
Saves DOM at the current state when called. This includes state changes from DOM manipulation via JS
stores/amazon.py:1601
↓ 8 callers
Method
do_button_click
( self, button, clicking_text="Clicking button", clicked_text="Button clicked"
stores/amazon.py:1270
↓ 7 callers
Method
save_screenshot
(self, page)
stores/amazon.py:1588
↓ 6 callers
Method
get_browser_profile_path
(self)
common/globalconfig.py:75
↓ 6 callers
Method
get_cart_count
(self)
stores/amazon.py:1215
↓ 4 callers
Method
play_alarm_sound
(self)
notifications/notifications.py:79
↓ 4 callers
Method
wait_for_page_change
(self, page_title, timeout=3)
stores/amazon.py:1627
↓ 3 callers
Method
fail_to_checkout_note
(self)
stores/amazon.py:314
↓ 3 callers
Method
handle_captcha
(self, check_presence=True)
stores/amazon.py:1476
↓ 3 callers
Method
page_wait_delay
(self)
stores/amazon.py:1638
↓ 3 callers
Method
play
(self, audio_file=None, **kwargs)
notifications/notifications.py:85
↓ 3 callers
Method
play_notify_sound
(self)
notifications/notifications.py:76
↓ 3 callers
Function
send_update
(state)
utils/discord_presence.py:57
↓ 2 callers
Method
create_driver
(self, path_to_profile)
stores/amazon.py:1747
↓ 2 callers
Function
create_encrypted_config
Creates an encrypted credential file if none exists. Stores results in a file in the root directory.
utils/encryption.py:67
↓ 2 callers
Method
delete_driver
(self)
stores/amazon.py:1797
↓ 2 callers
Method
get_amazon_elements
(self, key)
stores/amazon.py:1209
↓ 2 callers
Function
get_latest_version
()
utils/version.py:47
↓ 2 callers
Method
get_page
(self, url)
stores/amazon.py:1658
↓ 2 callers
Function
get_scrypt_cost_factor
(mem_percentage=0.5)
utils/encryption.py:115
↓ 2 callers
Function
get_timestamp_filename
Utility method to create a filename with a timestamp appended to the root and before the provided file extension
stores/amazon.py:1822
↓ 2 callers
Method
handle_order_complete
(self)
stores/amazon.py:1444
↓ 2 callers
Method
handle_shipping_page
(self)
stores/amazon.py:1178
↓ 2 callers
Method
handle_unknown_title
(self, title)
stores/amazon.py:1163
↓ 2 callers
Method
is_logged_in
(self)
stores/amazon.py:347
↓ 2 callers
Function
join_xpaths
(xpath_list, separator=" | ")
stores/amazon.py:2036
↓ 2 callers
Method
login
(self)
stores/amazon.py:356
↓ 2 callers
Function
notfound_message
(exception)
app.py:51
↓ 2 callers
Method
play_purchase_sound
(self)
notifications/notifications.py:82
↓ 2 callers
Method
remove_asin_list
(self, asin)
stores/amazon.py:962
↓ 2 callers
Function
resolve_domain
(domain)
cli/cli.py:359
↓ 1 callers
Method
attempt_atc
(self, offering_id, max_atc_retries=DEFAULT_MAX_ATC_TRIES)
stores/amazon.py:926
↓ 1 callers
Function
await_credential_input
()
common/globalconfig.py:31
↓ 1 callers
Method
buy_it_now
(self, offering_id, max_atc_retries=DEFAULT_MAX_ATC_TRIES)
stores/amazon.py:878
↓ 1 callers
Method
check_stock
(self, asin, reserve_min, reserve_max, retry=0)
stores/amazon.py:465
↓ 1 callers
Function
decrypt
Decryption function to unwrap and return the decrypted creds back to the main thread.
utils/encryption.py:49
↓ 1 callers
Function
enable_headless
()
utils/selenium_utils.py:154
↓ 1 callers
Function
encrypt
Encryption function to securely store user credentials, uses ChaCha_Poly1305 with a user defined SCrypt key.
utils/encryption.py:34
↓ 1 callers
Function
get_alt_shipping_costs
(tree, free_shipping_string)
stores/amazon.py:1866
↓ 1 callers
Method
get_amazon_config
(self, encryption_pass=None)
common/globalconfig.py:63
↓ 1 callers
Function
get_credentials
(credentials_file, encrypted_pass=None)
common/globalconfig.py:40
↓ 1 callers
Method
get_fairgame_config
(self)
common/globalconfig.py:72
↓ 1 callers
Function
get_folder_size
(folder)
cli/cli.py:44
↓ 1 callers
Function
get_item_condition
Attempts to determine the Item Condition from the Add To Cart form action
stores/amazon.py:2008
↓ 1 callers
Function
get_shipping_costs
(tree, free_shipping_string)
stores/amazon.py:1833
↓ 1 callers
Method
get_webdriver_pids
(self)
stores/amazon.py:1651
↓ 1 callers
Method
handle_business_po
(self)
stores/amazon.py:1561
↓ 1 callers
Method
handle_cart
(self)
stores/amazon.py:1330
↓ 1 callers
Method
handle_checkout
(self, test)
stores/amazon.py:1395
↓ 1 callers
Method
handle_doggos
(self)
stores/amazon.py:1462
↓ 1 callers
Method
handle_home_page
(self)
stores/amazon.py:1294
↓ 1 callers
Method
handle_out_of_stock
(self)
stores/amazon.py:1469
↓ 1 callers
Method
handle_prime_signup
(self)
stores/amazon.py:1230
↓ 1 callers
Method
handle_startup
(self)
stores/amazon.py:325
↓ 1 callers
Function
is_latest
()
utils/version.py:36
↓ 1 callers
Function
load_encrypted_config
Decrypts a previously encrypted credential file and returns the contents back to the calling thread.
utils/encryption.py:86
↓ 1 callers
Method
navigate_pages
(self, test)
stores/amazon.py:972
↓ 1 callers
Method
run
(self, delay=DEFAULT_REFRESH_DELAY, test=False)
stores/amazon.py:222
↓ 1 callers
Method
run_asins
(self, delay)
stores/amazon.py:451
↓ 1 callers
Method
send
(self, request, **kwargs)
utils/http.py:41
↓ 1 callers
Function
sha256sum
(filename)
app.py:24
↓ 1 callers
Method
show_config
(self)
stores/amazon.py:1691
↓ 1 callers
Function
sizeof_fmt
(num, suffix="B")
cli/cli.py:48
↓ 1 callers
Method
start_worker
(self)
notifications/notifications.py:73
↓ 1 callers
Function
wait_for_element_by_xpath
(d, xpath, timeout=10)
stores/amazon.py:2024
Method
__call__
(self, driver)
utils/selenium_utils.py:49
Method
__del__
(self)
stores/amazon.py:1688
Method
__init__
(self)
notifications/notifications.py:40
Method
__init__
(self, message)
utils/json_utils.py:38
Method
__init__
(self, *args, **kwargs)
utils/http.py:27
Method
__init__
(self, *args)
utils/selenium_utils.py:46
Method
__init__
( self, notification_handler, headless=False, checkshipping=False, det
stores/amazon.py:98
Method
__init__
(self, param_decls=None, **attrs)
cli/utils.py:25
Method
__init__
(self)
common/globalconfig.py:53
Function
_decode_dict
(a_dict)
utils/json_utils.py:26
Function
add_cookies_to_session_from_driver
(driver, session)
utils/selenium_utils.py:139
Function
amazon
( no_image, headless, test, delay, checkshipping, detailed, used, single_shot,
cli/cli.py:202
Function
button_click_using_xpath
Uses webdriver(d) to click a button using an XPath(xpath)
utils/selenium_utils.py:113
Function
buy_update
()
utils/discord_presence.py:49
Function
debug
Print the function signature and return value
utils/debugger.py:25
Function
decorator
(*args, **kwargs)
cli/cli.py:64
Function
field_send_keys
Uses webdriver(d) to fiend a field(field), clears it and sends keys(keys)
utils/selenium_utils.py:124
Function
find_endpoints
(domain)
cli/cli.py:330
Function
find_values
(json_repr, id)
utils/json_utils.py:23
Method
from_str
(cls, label)
stores/amazon.py:1992
Method
get_property
(self, property_name)
common/globalconfig.py:83
Function
has_class
(element, class_name)
utils/selenium_utils.py:133
Function
interrupt_handler
(signal_num, frame)
cli/cli.py:57
Function
main
()
cli/cli.py:79
Method
message_sender
(self)
notifications/notifications.py:63
Function
notify_on_crash
(func)
cli/cli.py:62
Method
prompt_for_value
(self, ctx)
cli/utils.py:28
Function
searching_update
()
utils/discord_presence.py:53
Method
send_notification
(self, message, ss_name=[], **kwargs)
notifications/notifications.py:59
Function
show
(w, c)
cli/cli.py:297
Function
show_traceroutes
(domain)
cli/cli.py:394
next →
1–100 of 110, ranked by callers