summaryrefslogtreecommitdiff
path: root/content/docs/configuration/cookies.md
diff options
context:
space:
mode:
authorPhilipp Tanlak <philipp.tanlak@gmail.com>2025-11-24 20:54:57 +0100
committerPhilipp Tanlak <philipp.tanlak@gmail.com>2025-11-24 20:57:48 +0100
commitb1e2c8fd5cb5dfa46bc440a12eafaf56cd844b1c (patch)
tree49d360fd6cbc6a2754efe93524ac47ff0fbe0f7d /content/docs/configuration/cookies.md
Docs
Diffstat (limited to 'content/docs/configuration/cookies.md')
-rw-r--r--content/docs/configuration/cookies.md36
1 files changed, 36 insertions, 0 deletions
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.