hitcarder.py
def check_form(self):
        """Get hitcard form, compare with old form """
        res = self.sess.get(self.base_url)
        html = res.content.decode()

        try:
            new_form = re.findall(r'<ul>[\s\S]*?</ul>', html)[0]
        except IndexError as _:
            raise RegexMatchError('Relative info not found in html with regex')

        with open("form.txt", "r", encoding="utf-8") as f:
            if new_form == f.read():
                return True
        return False
Get hitcard form, compare with old form 
Get hitcard form, compare with old form
Get hitcard form compare with old form
def check_form(self):
        res = self.sess.get(self.base_url)
        html = res.content.decode()
        try:
            new_form = re.findall(r'<ul>[\s\S]*?</ul>', html)[0]
        except IndexError as _:
            raise RegexMatchError('Relative info not found in html with regex')
        with open("form.txt", "r", encoding="utf-8") as f:
            if new_form == f.read():
                return True
        return False
def check_form ( self ) : res = self . sess . get ( self . base_url ) html = res . content . decode ( ) try : new_form = re . findall ( r'<ul>[\s\S]*?</ul>' , html ) [ 0 ] except IndexError as _ : raise RegexMatchError ( 'Relative info not found in html with regex' ) with open ( "form.txt" , "r" , encoding = "utf-8" ) as f : if new_form == f . read ( ) : return True return False
Get hitcard form, compare with old form
Get hitcard form compare with old form
"""Get hitcard form, compare with old form """
self