Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
from bs4 import BeautifulSoup
import urllib2
import appex
import dialogs
import clipboard
channel = appex.get_url()
webpage = urllib2.urlopen(channel)
soup = parser(webpage)
feeds = soup.findAll("link", rel="alternate")
for RSS_link in feeds:
url = RSS_link.get("href", None)
if 'feeds' in url:
dialogs.alert('Found Channel RSS', url, 'Copy')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment