MCPcopy Create free account

hub / github.com/OfficialCodeVoyage/GitHub_Follower_Bot_Automated / functions

Functions29 in github.com/OfficialCodeVoyage/GitHub_Follower_Bot_Automated

↓ 4 callersFunctionfollow_user
Attempts to follow a user with retry logic, including exponential backoff with jitter.
bot.py:150
↓ 2 callersFunctioncheck_rate_limit
Checks the current rate limit status and logs it.
bot.py:128
↓ 2 callersFunctionhandle_rate_limit
Handles GitHub API rate limiting with exponential backoff and jitter.
bot.py:108
↓ 2 callersFunctionupdate_follower_counter
Writes the follower count to a file.
bot.py:97
↓ 1 callersFunctionappend_followed_user
Appends a followed user to the file.
bot.py:76
↓ 1 callersFunctioncheck_rate_limit
Checks the current rate limit status. Returns a tuple of (remaining_requests, reset_timestamp).
check_all_followers.py:99
↓ 1 callersFunctionget_total_followers
Retrieves the total number of followers. Uses the 'per_page=1' parameter to minimize data transfer.
check_all_followers.py:122
↓ 1 callersFunctionload_followed_users
Loads followed users from a file into a set.
bot.py:67
↓ 1 callersFunctionload_followed_users
Loads followed users from a file into a set. If the file does not exist, returns an empty set.
check_all_followers.py:62
↓ 1 callersFunctionload_follower_counter
Loads the follower counter from a file.
bot.py:87
↓ 1 callersFunctionload_follower_counter
Loads the follower counter from a file. If the file does not exist or contains invalid data, returns 0.
check_all_followers.py:80
↓ 1 callersFunctionmain
()
bot.py:193
↓ 1 callersFunctionmain
Main function to check total followers and available followers to follow.
check_all_followers.py:159
Functionget_followers
Fetches all followers of the specified GitHub user.
DEV_files/web_api_check.py:38
Functiontest_append_to_file
()
pytests/test_bot.py:85
Functiontest_fetch_followers_http_error
()
pytests/test_bot.py:31
Functiontest_fetch_followers_success
()
pytests/test_bot.py:15
Functiontest_follow_user_forbidden
()
pytests/test_bot.py:57
Functiontest_follow_user_not_found
()
pytests/test_bot.py:49
Functiontest_follow_user_success
()
pytests/test_bot.py:38
Functiontest_get_new_followers
()
pytests/test_bot.py:110
Functiontest_get_new_followers_not_found
()
pytests/test_bot.py:114
Functiontest_increment_counter_exists
()
pytests/test_bot.py:92
Functiontest_increment_counter_not_found
()
pytests/test_bot.py:103
Functiontest_process_batch
()
pytests/test_bot.py:119
Functiontest_process_followers_in_batches
()
pytests/test_bot.py:150
Functiontest_read_file_exists
()
pytests/test_bot.py:65
Functiontest_read_file_not_found
()
pytests/test_bot.py:72
Functiontest_write_file
()
pytests/test_bot.py:77