Skip to content

Instantly share code, notes, and snippets.

@abdulrahman1s
Last active July 16, 2022 01:12
Show Gist options
  • Save abdulrahman1s/1d2abde29da68715d5f498b8c0505168 to your computer and use it in GitHub Desktop.
Save abdulrahman1s/1d2abde29da68715d5f498b8c0505168 to your computer and use it in GitHub Desktop.
Python script to update your github bio every 3 hours
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