Skip to content

Instantly share code, notes, and snippets.

@zongai zongai/btchat.py
Created Dec 23, 2014

Embed
What would you like to do?
btchat.py
import feedparser
def get_btchat_list():
items = feedparser.parse("http://rss.bt-chat.com/?group=3")
showlist = ['Mulaney','Major.Crimes']
entries = []
for item in items['entries']:
entrie = {}
entrie['title'] = item['filename']
entrie['magneturi'] = item['magneturi']
for show in showlist:
if show in entrie['title']:
entries.append(entrie)
return entries
if __name__ == '__main__':
print get_btchat_list()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.