Skip to content

Instantly share code, notes, and snippets.

@rounakdatta
Created February 24, 2019 07:11
Show Gist options
  • Save rounakdatta/8b386efbfbae4e13f534fa61e95845a9 to your computer and use it in GitHub Desktop.
Save rounakdatta/8b386efbfbae4e13f534fa61e95845a9 to your computer and use it in GitHub Desktop.
Get Indian Engineering Olympiad Questions
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