【发布时间】:2021-07-11 07:38:40
【问题描述】:
将 Splash 与 Scrapy 一起使用时,标头从 Splash 服务器而不是 Splash 呈现的网站返回。
response.headers 返回:
{b'Server': [b'TwistedWeb/19.7.0'], b'Date': [b'Sun, 11 Jul 2021 07:31:32 GMT'], b'Content-Type': [b'text/html; charset=utf-8']}
我正在尝试获取实际网站的标题:
Connection: Keep-Alive
Content-Length: 5
Content-Type: text/html
Date: Sun, 11 Jul 2021 07:05:49 GMT
Keep-Alive: timeout=5, max=100
Server: Apache
X-Cache: HIT
如何获取网站的标头而不是 Splash 服务器?
【问题讨论】:
标签: scrapy scrapy-splash