Open legend-zl opened 2 years ago
使用Sscrapy的时候,利用
yield PlaywrightRequest(article_url, callback=self.parse_result, wait_until='domcontentloaded', headers=self.headers)
出现错误:gzip.BadGzipFile: Not a gzipped file (b'<!')
metoo
修改 downloadermiddlewares.py中的378行 headers=response.headers, 改为 headers=headers,
作者在380-382行已经修复了这个问题,但是居然没有引用处理后的headers
使用Sscrapy的时候,利用
yield PlaywrightRequest(article_url, callback=self.parse_result, wait_until='domcontentloaded', headers=self.headers)
出现错误:gzip.BadGzipFile: Not a gzipped file (b'<!')