Index

Dec. 9, 2014
Trending Television & Film
Python
Beautiful Soup

Scrapes the television series section (politely) of a well known torrent site sorted by most seeders. Continues until it has accumulated a set count of unique shows and displays the most recent torrent name for each in a list.

To identify different torrents or episodes as belonging to the same show a few simple regular expressions replacements are used to eliminate season, episode, quality and type, and then all non-alpha characters are removed (including spaces) for comparison.