参数说明
瞭解 Thordata 的 Universal Scraping 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?