参数说明
配置 WebPage API 請求,設定目標 URL、API Token、JavaScript 渲染、輸出格式、代理地區、資源攔截、等待時間、請求標頭和 Cookie。
瞭解 Thordata 的 網頁解鎖器 - 抓取參數。
Token(必填):
該參數定義了爬取時使用的 API 令牌。對於您的成功爬取起到決定性作用。
參數
名稱
作用
token
Token
爬取時驗證的 API 令牌
URL(必填):
該參數定義了爬取的目的網站連結,預設值為 google.com。您也可以更改為其他搜尋引擎連結。
參數
名稱
作用
url
URL
爬取的目的網站的連結
示例請求:
帶有token:Token ,url:https://www.google.com 的參數示例
curl -X POST https://webunlocker.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?