Last active
July 16, 2022 01:12
-
-
Save abdulrahman1s/1d2abde29da68715d5f498b8c0505168 to your computer and use it in GitHub Desktop.
Python script to update your github bio every 3 hours
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from github import Github | |
from time import sleep | |
import random | |
github = Github("your github personal token") | |
quotes = [] | |
print(f"Logged in as {github.get_user().name}") | |
while True: | |
try: | |
quote = random.choice(quotes) | |
github.get_user().edit(bio=quote) | |
print(f"Updated bio to: {quote}") | |
except: | |
continue | |
sleep(60 * 60 * 3) # every 3 hours |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment