From b1e2c8fd5cb5dfa46bc440a12eafaf56cd844b1c Mon Sep 17 00:00:00 2001 From: Philipp Tanlak Date: Mon, 24 Nov 2025 20:54:57 +0100 Subject: Docs --- content/docs/configuration/cookies.md | 36 +++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 content/docs/configuration/cookies.md (limited to 'content/docs/configuration/cookies.md') diff --git a/content/docs/configuration/cookies.md b/content/docs/configuration/cookies.md new file mode 100644 index 0000000..f73d495 --- /dev/null +++ b/content/docs/configuration/cookies.md @@ -0,0 +1,36 @@ +--- +title: 'Cookies' +weight: 9 +--- + +The Cookies configuration in the `flyscrape` script's configuration object allows you to specify the behavior of the cookie store during the scraping process. Cookies are often used for authentication and session management on websites. + +## Cookies Configuration + +To configure the cookie store behavior, set the `cookies` field in your configuration. The `cookies` option supports three values: `"chrome"`, `"edge"`, and `"firefox"`. Each value corresponds to using the cookie store of the respective local browser. + +When the `cookies` option is set to `"chrome"`, `"edge"`, or `"firefox"`, `flyscrape` utilizes the cookie store of the user's installed browser. + +```javascript {filename="Configuration"} +export const config = { + cookies: "chrome", +}; +``` + +In the above example, the `cookies` option is set to `"chrome"`, indicating that `flyscrape` should use the cookie store of the local Chrome browser. + +```javascript {filename="Configuration"} +export const config = { + cookies: "firefox", +}; +``` + +In this example, the `cookies` option is set to `"firefox"`, instructing `flyscrape` to use the cookie store of the local Firefox browser. + +```javascript {filename="Configuration"} +export const config = { + cookies: "edge", +}; +``` + +In this example, the `cookies` option is set to `"edge"`, indicating that `flyscrape` should use the cookie store of the local Edge browser. -- cgit v1.2.3