Created
August 3, 2017 19:12
-
-
Save luisfcorreia/aac343ed4a91dcfdde423002e62bd636 to your computer and use it in GitHub Desktop.
beautiful rtp
This file contains 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
from bs4 import BeautifulSoup | |
import urllib2 | |
import sys | |
url = sys.argv[1] | |
page = urllib2.urlopen(url) | |
soup = BeautifulSoup(page,'lxml') | |
episodios = soup.find_all("a", class_="article-link") | |
for link in episodios: | |
print ("youtube-dl " + link.get('href')) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment