Created
March 30, 2020 12:03
-
-
Save LoranKloeze/d4bdace946cc10539dbf03ddcb312a44 to your computer and use it in GitHub Desktop.
RUMAG countdown
This file contains hidden or 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
import urllib.request, json, time, sys | |
while True: | |
with urllib.request.urlopen("https://www.instagram.com/graphql/query/?query_hash=c76146de99bb02f6415203be841dd25a&variables=%7B%22id%22%3A%22402024658%22%2C%22include_reel%22%3Afalse%2C%22fetch_mutual%22%3Atrue%2C%22first%22%3A24%7D") as url: | |
doc = json.loads(url.read().decode()) | |
count = doc['data']['user']['edge_followed_by']['count'] | |
sys.stdout.write("\rRUMAG Instagram countdown: %i" % count) | |
sys.stdout.flush() | |
time.sleep(3) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment