Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gzip.BadGzipFile: Not a gzipped file (b'<!') #13

Open
legend-zl opened this issue May 8, 2022 · 2 comments
Open

gzip.BadGzipFile: Not a gzipped file (b'<!') #13

legend-zl opened this issue May 8, 2022 · 2 comments

Comments

@legend-zl
Copy link

使用Sscrapy的时候,利用

yield PlaywrightRequest(article_url, callback=self.parse_result, wait_until='domcontentloaded', headers=self.headers)

出现错误:gzip.BadGzipFile: Not a gzipped file (b'<!')

@gdszps
Copy link

gdszps commented May 30, 2022

metoo

@wAnFen1017
Copy link

修改 downloadermiddlewares.py中的378行
headers=response.headers, 改为 headers=headers,

作者在380-382行已经修复了这个问题,但是居然没有引用处理后的headers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants