You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 403f0b2
Browse filesBrowse the repository at this point in the historyBrowse files
stlc-bot
committed
feat(batch): support Scrape Anything batches up to 100k URLs (#1883)
Copy file name to clipboardExpand all lines: pkg/cmd/batch.go
+8-2Lines changed: 8 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -56,6 +56,12 @@ var batchList = cli.Command{
56
56
Usage: "`prefix` for as-you-type prefix matching (default), `exact` for full-token matching.",
57
57
QueryPath: "search_type",
58
58
},
59
+
&requestflag.Flag[bool]{
60
+
Name: "should-include-unified",
61
+
Usage: "Include batches submitted with Scrape Anything formats. Defaults to false.",
62
+
Default: false,
63
+
QueryPath: "shouldIncludeUnified",
64
+
},
59
65
&requestflag.Flag[string]{
60
66
Name: "status",
61
67
Usage: "Filter by status.",
@@ -105,7 +111,7 @@ var batchCancel = cli.Command{
105
111
106
112
varbatchGetResults= cli.Command{
107
113
Name: "get-results",
108
-
Usage: "Page through a finished batch’s results as JSON. Results remain available for\n180 days.",
114
+
Usage: "Page through a finished batch’s results as JSON. Each record contains result\nwith the same outputs and per-format errors as POST /web/scrape. Results remain\navailable for 180 days.",
109
115
Suggest: true,
110
116
Flags: []cli.Flag{
111
117
&requestflag.Flag[string]{
@@ -132,7 +138,7 @@ var batchGetResults = cli.Command{
Usage: "Scrape up to 25,000 URLs, or crawl a site, asynchronously. Poll the batch ID or\nreceive a webhook when it finishes.",
141
+
Usage: "Scrape up to 100,000 URLs, or crawl a site, asynchronously using the same\nformats and scrape parameters as POST /web/scrape. Choose Markdown, HTML,\nscreenshots, images, bytes, parsed fields, products, highlights, and JSON. Poll\nthe batch ID or receive a webhook when it finishes.",
0 commit comments