Skip to content

Instantly share code, notes, and snippets.

@LoranKloeze
Created March 30, 2020 11:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LoranKloeze/75f6c5cef226e54c4dd2afcdcb1f5d6a to your computer and use it in GitHub Desktop.
Save LoranKloeze/75f6c5cef226e54c4dd2afcdcb1f5d6a to your computer and use it in GitHub Desktop.
RUMAG countdown
require 'open-uri'
require 'json'
require 'time'
loop do
doc = JSON.load(URI.open("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&t23=#{Time.now.getutc.to_i}"))
count = doc['data']['user']['edge_followed_by']['count']
print "RUMAG Instagram countdown: #{count}\r"
$stdout.flush
sleep 3
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment