def get_browsers():
 html = get(settings.BROWSERS_STATS_PAGE)
 html = html.decode(u'windows-1252')
 html = html.split(u'<table class="w3-table-all notranslate">')[1]
 html = html.split(u'</table>')[0]
 browsers = re.findall(u'\\.asp">(.+?)<', html, re.UNICODE)
 browsers = [settings.OVERRIDES.get(browser, browser) for browser in browsers]
 browsers_statistics = re.findall(u'td\\sclass="right">(.+?)\\s', html, re.UNICODE)
 return list(zip(browsers, browsers_statistics))

def get_browsers ( ) : html = get ( settings . BROWSERS_STATS_PAGE ) html = html . decode ( u'windows-1252' ) html = html . split ( u'<table class="w3-table-all notranslate">' ) [ 1 ] html = html . split ( u'</table>' ) [ 0 ] browsers = re . findall ( u'\\.asp">(.+?)<' , html , re . UNICODE ) browsers = [ settings . OVERRIDES . get ( browser , browser ) for browser in browsers ] browsers_statistics = re . findall ( u'td\\sclass="right">(.+?)\\s' , html , re . UNICODE ) return list ( zip ( browsers , browsers_statistics ) )
very very hardcoded/dirty re/split stuff .