Skip to content

Commit

Permalink
feat(webhooks,format): add webhooks and multi return format
Browse files Browse the repository at this point in the history
  • Loading branch information
j-mendez committed Oct 9, 2024
1 parent 1a79f13 commit dba2213
Show file tree
Hide file tree
Showing 23 changed files with 550 additions and 912 deletions.
2 changes: 1 addition & 1 deletion book/src/javascript/crawl.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ import type { SpiderParams } from "@spider-cloud/spider-client/dist/config";
const app = new Spider();
const url = "https://spider.cloud";
const params: SpiderParams = {
return_format: "raw",
return_format: ["raw", "markdown"],
anti_bot: true,
};
const scrapedData = await app.crawlUrl(url, params);
Expand Down
1 change: 1 addition & 0 deletions book/src/python/crawl.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ params: spider_types.RequestParamsDict = {
"limit": 10,
"request_timeout": 10,
"stealth": True,
"return_format": [ "raw", "markdown" ],
# Easier to read and intellisense will help you with the available options
}

Expand Down
Loading

0 comments on commit dba2213

Please sign in to comment.