cookies = {
cookie['name']: cookie['value']
for cookie in driver.get_cookies()
}
response = requests.get(
url,
headers={'User-Agent': self.user_agent},
cookies=cookies)
追記: zipを展開
zf = zipfile.ZipFile(io.BytesIO(response.content), 'r')
for filedata in zf.infolist():
if filedata.filename.endswith(xxxx):
content = zf.read(filedata).decode('ascii')
コメント