参数说明
了解 Thordata 的 通用抓取 API - 抓取参数。
Token
(必填):
该参数定义了爬取时使用的 API 令牌。对于您的成功爬取起到决定性作用。
参数
名称
作用
token
Token
爬取时验证的 API 令牌
URL
(必填):
该参数定义了爬取的目的网站链接,默认值为 google.com。您也可以更改为其他搜索引擎链接。
参数
名称
作用
url
URL
爬取的目的网站的链接
示例请求:
带有token
:Token ,url
:https://www.google.com 的参数示例
curl -X POST https://universalapi.thordata.com/request -H "Authorization: Bearer Token" -H "Content-Type: application/x-www-form-urlencoded" -d "url=https://www.google.com" -d "type=html" -d "js_render=True"
Last updated
Was this helpful?