requestium设置user-agent
Session(webdriver_path=r'C:\py\tools\chromedriver.exe', browser='chrome', default_timeout=30, webdriver_options={ 'arguments': [ 'headless', 'window-size=1920x1080', 'user-agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36', '--disable-extensions'], 'prefs': {'download.default_directory': self.downloadfolder}}, )