新闻搜索
大规模抓取 Google 新闻结果并获取完全解析的数据。提取带有标题、来源和发布日期的文章。
请求示例
udm
curl 'https://realtime.oxylabs.io/v1/queries' \
--user 'USERNAME:PASSWORD' \
-H 'Content-Type: application/json' \
-d '{
"source": "google_search",
"domain": "nl",
"query": "adidas",
"parse": true,
"context": [
{
"key": "udm",
"value": "12"
}
]
}'import requests
from pprint import pprint
# 构建负载。
payload = {
'source': 'google_search',
'domain': 'nl',
'query': 'adidas',
'parse': True,
'context': [
{'key': 'udm', 'value': '12'},
],
}
# 获取响应。
response = requests.post(
'https://realtime.oxylabs.io/v1/queries',
auth=('USERNAME', 'PASSWORD'),
json=payload,
)
# 将美化后的响应打印到标准输出。
pprint(response.json())tbm
请求参数值
通用
参数
说明
默认值
Google 高级搜索运算符
本地化
参数
说明
默认值
分页
参数
说明
默认值
每页限制
参数
说明
示例
请求示例
筛选
参数
说明
默认值
其他
参数
说明
默认值
上下文参数
结构化数据
输出数据字典
HTML 示例

JSON 结构
键
说明
类型
主要

键(results.main)
说明
类型
附加

键(results.additional)
说明
类型
最后更新于
这有帮助吗?

