Skip to content

Instantly share code, notes, and snippets.

@okraskaj
Forked from mentix02/downloader.py
Created January 31, 2017 22:36
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 okraskaj/0a6f328652e93da2cb2a52e83ff488bf to your computer and use it in GitHub Desktop.
Save okraskaj/0a6f328652e93da2cb2a52e83ff488bf to your computer and use it in GitHub Desktop.
Facebook solution to a problem.
#!/usr/bin/python3
import os
def main():
urlFirst = 'http://www.mywebsite.com/img/'
extension = '.jpg'
for i in range(801):
os.system('wget' + urlFirst + str(i) + extension)
print("Downloaded!")
if __name__ == '__main__':
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment