Last active
April 28, 2020 22:48
-
-
Save geektutor/2c44460a815e60086f03a8a75a825399 to your computer and use it in GitHub Desktop.
A script that downloads my favorite movies for me
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
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