Skip to content

Instantly share code, notes, and snippets.

@geektutor
Last active April 28, 2020 22:48
Show Gist options
  • Save geektutor/2c44460a815e60086f03a8a75a825399 to your computer and use it in GitHub Desktop.
Save geektutor/2c44460a815e60086f03a8a75a825399 to your computer and use it in GitHub Desktop.
A script that downloads my favorite movies for me
import urllib.request
endEpisode = int(input('Enter a end episode'))
for i in range(1, endEpisode):
q = str(i).zfill(2)
url = "http://d14.o2tv.org/Greys%20Anatomy/Season%2006/Greys%20Anatomy%20-%20S06E" + str(q) + "%20(O2TvSeries.Com).mp4"
print(url)
location = "/Users/User/Downloads/" + str(q) + ".mp4"
urllib.request.urlretrieve(url, location)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment