Created
February 24, 2019 07:11
-
-
Save rounakdatta/8b386efbfbae4e13f534fa61e95845a9 to your computer and use it in GitHub Desktop.
Get Indian Engineering Olympiad Questions
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
url_start = 'http://ot2019.s3.amazonaws.com/192501/Ques/IEO-CS-R1-Q' | |
url_end = '.gif' | |
import requests | |
for i in range(1, 41): | |
foo = requests.get(url_start + str(i) + url_end) | |
f = open(str(i) + '.gif', 'wb+') | |
f.write(foo.content) | |
f.close() | |
print('Question ' + str(i) + ' downloaded!') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment