产品
了解如何使用 costco_product 来源与 网页爬虫 API 收集 Costco 产品页面数据。
请求示例
curl 'https://realtime.oxylabs.io/v1/queries' \
--user 'USERNAME:PASSWORD' \
-H 'Content-Type: application/json' \
-d '{
"source": "costco_product",
"product_id": "4000351081",
"render": "html"
}'import requests
from pprint import pprint
# 构建负载。
payload = {
"source": "costco_product",
"product_id": "4000351081",
"render": "html"
}
# 获取响应。
response = requests.request(
'POST',
'https://realtime.oxylabs.io/v1/queries',
auth=('USERNAME', 'PASSWORD'),
json=payload,
)
# 该请求不会返回带有作业状态和结果 URL 的响应,而是返回
# 包含结果的 JSON 响应。
pprint(response.json())请求参数值
通用
参数
说明
默认值
本地化
参数
说明
默认值
最后更新于
这有帮助吗?

