#VERSION: 0.4 #AUTHORS: nindogo import re from html.parser import HTMLParser from helpers import download_file, retrieve_url from novaprinter import prettyPrinter URL = 'https://yourbittorrent.com' class yourBitParser(HTMLParser): A, TD, TR, HREF, TABLE, DIV, INPUT, BODY = ( 'a', 'td', 'tr', 'href', 'table', 'div', 'input', 'body') GET_NUM_RESULTS = re.compile(r'<\/b> of (\d*)<\/b> torrents found for "') GET_NAME_RE = re.compile(r'(.*)Torrent Download