Skip to content

Instantly share code, notes, and snippets.

@nvjkmr
Created June 6, 2016 05:24
Show Gist options
  • Save nvjkmr/a307391430f3b7768d0a4af0d6a05163 to your computer and use it in GitHub Desktop.
Save nvjkmr/a307391430f3b7768d0a4af0d6a05163 to your computer and use it in GitHub Desktop.
Check BPUT results from old website
#!/usr/bin/python3
import sys
import requests
reg_id = sys.argv[1]
print("Fetching results of "+ reg_id + " from http://results.bput.ac.in/")
for i in range(1,610):
url = 'http://results.bput.ac.in/'+ str(i) +'_RES/'+ reg_id +'.html'
response = requests.head(url)
if response.ok:
print(url)
print("done...")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment