Skip to content

Instantly share code, notes, and snippets.

@mentix02
Created January 29, 2017 21:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save mentix02/81a1e645efd29abfca330d61838e00cb to your computer and use it in GitHub Desktop.
Save mentix02/81a1e645efd29abfca330d61838e00cb 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