请求.get返回subs

2024-04-26 14:20:35 发布

您现在位置:Python中文网/ 问答频道 /正文

我使用的代码是:

import requests
k=requests.get('https://zebramo.com/search/product-scope/merrell?extended=true&is_sold=false&include_vacation=false&max_price=100&order_by=price&order_direction=asc',headers=headerZ,stream=True)
m=k.content
print(m)

当我在Google Chrome==>;Inspect==>;Network中检查页面时,我看到我得到的返回变量与URL的第一个“Response”匹配,但是下面的.js文件的响应或输出在我的content m中不存在。 因为同一个URL在googlechrome中工作,所以我尝试从浏览器复制不同的头信息,但没有成功。你知道吗

(如果没有直截了当的答案,我也会很感激你给我正确方向的建议,谢谢。)


Tags: 代码httpsimportgtcomfalseurlsearch