Created
June 6, 2016 05:24
-
-
Save nvjkmr/a307391430f3b7768d0a4af0d6a05163 to your computer and use it in GitHub Desktop.
Check BPUT results from old website
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
#!/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