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
Copy file name to clipboardExpand all lines: pkg/cmd/web.go
+20Lines changed: 20 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -209,6 +209,11 @@ var webScreenshot = requestflag.WithInnerFlags(cli.Command{
209
209
Usage: "Capture a screenshot of a website.",
210
210
Suggest: true,
211
211
Flags: []cli.Flag{
212
+
&requestflag.Flag[string]{
213
+
Name: "country",
214
+
Usage: "Two-letter ISO 3166-1 alpha-2 country code for the website request location. When provided, Context.dev fetches the target page from that country.",
215
+
QueryPath: "country",
216
+
},
212
217
&requestflag.Flag[string]{
213
218
Name: "direct-url",
214
219
Usage: "A specific URL to screenshot directly, bypassing domain resolution (e.g., 'https://example.com/pricing'). When provided, the screenshot is taken of this exact URL. You must provide either 'domain' or 'directUrl', but not both.",
@@ -391,6 +396,11 @@ var webWebCrawlMd = requestflag.WithInnerFlags(cli.Command{
391
396
Required: true,
392
397
BodyPath: "url",
393
398
},
399
+
&requestflag.Flag[string]{
400
+
Name: "country",
401
+
Usage: "Two-letter ISO 3166-1 alpha-2 country code identifying a supported Context.dev residential proxy exit location. Must be one of Context.dev's supported countries. When provided, Context.dev fetches the target page from that country.",
402
+
BodyPath: "country",
403
+
},
394
404
&requestflag.Flag[[]string]{
395
405
Name: "exclude-selector",
396
406
Usage: `CSS selectors to remove before each crawled page is converted to Markdown. Applied after includeSelectors. Exclusion takes precedence: an element matching both is removed. Examples: "nav", "footer", ".ad-banner", "[aria-hidden=true]".`,
@@ -515,6 +525,11 @@ var webWebScrapeHTML = requestflag.WithInnerFlags(cli.Command{
515
525
Required: true,
516
526
QueryPath: "url",
517
527
},
528
+
&requestflag.Flag[string]{
529
+
Name: "country",
530
+
Usage: "Two-letter ISO 3166-1 alpha-2 country code for the website request location. When provided, Context.dev fetches the target page from that country.",
531
+
QueryPath: "country",
532
+
},
518
533
&requestflag.Flag[[]string]{
519
534
Name: "exclude-selector",
520
535
Usage: `CSS selectors to remove from the result. Applied after includeSelectors. Exclusion takes precedence: an element matching both is removed. Examples: "nav", "footer", ".ad-banner", "[aria-hidden=true]".`,
@@ -663,6 +678,11 @@ var webWebScrapeMd = requestflag.WithInnerFlags(cli.Command{
663
678
Required: true,
664
679
QueryPath: "url",
665
680
},
681
+
&requestflag.Flag[string]{
682
+
Name: "country",
683
+
Usage: "Two-letter ISO 3166-1 alpha-2 country code for the website request location. When provided, Context.dev fetches the target page from that country.",
684
+
QueryPath: "country",
685
+
},
666
686
&requestflag.Flag[[]string]{
667
687
Name: "exclude-selector",
668
688
Usage: `CSS selectors to remove before conversion to Markdown. Applied after includeSelectors. Exclusion takes precedence: an element matching both is removed. Examples: "nav", "footer", ".ad-banner", "[aria-hidden=true]".`,
0 commit comments