Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __init__(self, results, url):
HTMLParser.__init__(self)
self.results = results
self.url = url
self.current_item = {} # One torrent result
self.add_query = True
self.torrent_info_index = 0 # Count of the meta data encountered
self.torrent_info_array = []
self.meta_data_grabbing = 0
self.meta_data_array = []
self.torrent_no_files = 0
self.torrent_date_added = 0
self.torrent_popularity = 0
self.magnet_link = ""
self.desc_link = ""
self.torrent_name = ""
def __init__(self):
HTMLParser.HTMLParser.__init__(self)
self.entries = []
self.even = True;
self.in_player_info_table = False;
self.in_player_info_div = False;
self.in_player_info_tr = False;
self.in_player_info_td = False;
self.str = "";
def __init__(self):
HTMLParser.__init__(self)
self.recording = 0
self.sdata = []
def handle_starttag(self, tag, attrs):
def __init__(self):
HTMLParser.__init__(self)
self.url_list = []
def __init__(self):
HTMLParser.__init__(self)
self.data = ''
self.current_node = []
self.in_td = False
self.below_td = 0
self.rules = {}
def __init__(self, raise_exception=True):
html.parser.HTMLParser.__init__(self)
self.doc = {}
self.path = []
self.cur = self.doc
self.line = 0
self.raise_exception = raise_exception
def __init__(self):
HTMLParser.HTMLParser.__init__(self)
self.players = []
self.currentplayer = {}
#doc position helpers
self.in_player_div = False;
self.in_player_name_div = False;
self.in_player_position_div = False;
self.nested = {}
def __init__(self, convert_charrefs=False, **kwargs):
html.parser.HTMLParser.__init__(self, convert_charrefs=convert_charrefs, **kwargs)
def __init__(self, base_url):
HTMLParser.__init__(self)
self.base_url = base_url
self.links = []
def __init__(self, **kwargs):
HTMLParser.__init__(self)
self.kwargs = kwargs
self.tables = []
self.last_row = []
self.rows = []
self.max_row_width = 0
self.active = None
self.last_content = ""
self.is_last_row_header = False