How to use the html.parser.HTMLParser.__init__ function in html

To help you get started, we’ve selected a few html examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github qbittorrent / search-plugins / nova / engines / btdb.py View on Github external
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 = ""
github minj / foxtrick / maintainer / locale / Hattrick / Parsers / PlayerDetailParser.py View on Github external
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 = "";
github tg21 / python-on-pails / inline.py View on Github external
def __init__(self):
        HTMLParser.__init__(self)
        self.recording = 0 
        self.sdata = []
    def handle_starttag(self, tag, attrs):
github mooniak / textual-tools / hparser.py View on Github external
def __init__(self):
        HTMLParser.__init__(self)
        self.url_list = []
github rubenv / angular-gettext / genplurals.py View on Github external
def __init__(self):
    HTMLParser.__init__(self)

    self.data = ''
    self.current_node = []
    self.in_td = False
    self.below_td = 0

    self.rules = {}
github tadashi-aikawa / jumeaux / jumeaux / addons / parser.py View on Github external
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
github minj / foxtrick / maintainer / locale / Hattrick / Parsers / MatchLineUpParser.py View on Github external
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 = {}
github django / django / django / utils / html_parser.py View on Github external
def __init__(self, convert_charrefs=False, **kwargs):
        html.parser.HTMLParser.__init__(self, convert_charrefs=convert_charrefs, **kwargs)
github Softcatala / translation-memory-tools / src / builder / crawler.py View on Github external
def __init__(self, base_url):
        HTMLParser.__init__(self)
        self.base_url = base_url
        self.links = []
github Samsung / veles / veles / external / prettytable.py View on Github external
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