def browser(): ua = random_user_agent(allow_ie=False) br = _browser(user_agent=ua) br.set_handle_gzip(True) br.addheaders += [ ('Accept', accept_header_for_ua(ua)), ('Upgrade-insecure-requests', '1'), ] return br
def browser(): ua = random_user_agent(allow_ie=False) br = _browser(user_agent=ua) br.set_handle_gzip(True) br.addheaders += [ ('Accept', accept_header_for_ua(ua)), ('Upgrade-insecure-requests', '1'), ] return br
def browser(): ua = random_user_agent(allow_ie=False) # ua = 'Mozilla/5.0 (Linux; Android 8.0.0; VTR-L29; rv:63.0) Gecko/20100101 Firefox/63.0' br = _browser(user_agent=ua) br.set_handle_gzip(True) br.addheaders += [ ('Accept', accept_header_for_ua(ua)), ('Upgrade-insecure-requests', '1'), ] return br
def browser(): ua = random_user_agent(allow_ie=False) # ua = 'Mozilla/5.0 (Linux; Android 8.0.0; VTR-L29; rv:63.0) Gecko/20100101 Firefox/63.0' br = _browser(user_agent=ua) br.set_handle_gzip(True) br.addheaders += [ ('Accept', accept_header_for_ua(ua)), ('Upgrade-insecure-requests', '1'), ] return br