diff options
| author | Philipp Tanlak <philipp.tanlak@gmail.com> | 2025-11-24 20:54:57 +0100 |
|---|---|---|
| committer | Philipp Tanlak <philipp.tanlak@gmail.com> | 2025-11-24 20:57:48 +0100 |
| commit | b1e2c8fd5cb5dfa46bc440a12eafaf56cd844b1c (patch) | |
| tree | 49d360fd6cbc6a2754efe93524ac47ff0fbe0f7d /content/docs/configuration/proxies.md | |
Docs
Diffstat (limited to 'content/docs/configuration/proxies.md')
| -rw-r--r-- | content/docs/configuration/proxies.md | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/content/docs/configuration/proxies.md b/content/docs/configuration/proxies.md new file mode 100644 index 0000000..913630d --- /dev/null +++ b/content/docs/configuration/proxies.md @@ -0,0 +1,33 @@ +--- +title: 'Proxies' +weight: 8 +--- + +The proxy feature allows you to route your scraping requests through a specified HTTP(S) proxy. This can be useful for bypassing IP-based rate limits or accessing region-restricted content. + +```javascript +export const config = { + // Specify a single HTTP(S) proxy URL. + proxy: "http://someproxy.com:8043", +}; +``` + +In the above example, all scraping requests will be routed through the proxy at `http://someproxy.com:8043`. + +## Multiple Proxies + +You can also specify multiple proxy URLs. The scraper will rotate between these proxies for each request. + +```javascript +export const config = { + // Specify multiple HTTP(S) proxy URLs. + proxies: [ + "http://someproxy.com:8043", + "http://someotherproxy.com:8043", + ], +}; +``` + +In this example, the scraper will randomly pick between the proxies at `http://someproxy.com:8043` and `http://someotherproxy.com:8043`. + +Note: If both `proxy` and `proxies` are specified, all proxies will be respected. |