Skip to content

Instantly share code, notes, and snippets.

@luisfcorreia
Created August 3, 2017 19:12
Show Gist options
  • Save luisfcorreia/aac343ed4a91dcfdde423002e62bd636 to your computer and use it in GitHub Desktop.
Save luisfcorreia/aac343ed4a91dcfdde423002e62bd636 to your computer and use it in GitHub Desktop.
beautiful rtp
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