Here is the translated text of the Japanese blog article into English:
cookies = {
cookie['name']: cookie['value']
for cookie in driver.get_cookies()
}
response = requests.get(
url,
headers={'User-Agent': self.user_agent},
cookies=cookies
)
Additional Note: Extracting 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')
Comments