# How to set cookies on website in dynamic scraper

**URL:** <https://forum.seocontentmachine.com/t/how-to-set-cookies-on-website-in-dynamic-scraper/371>\
**Category:** feature\
**Tags:** dynamic-scraper, done\
**Created:** [June 24, 2024, 11:04am UTC](https://forum.seocontentmachine.com/t/how-to-set-cookies-on-website-in-dynamic-scraper/371 "2024-06-24T11:04:01Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Takeru](https://forum.seocontentmachine.com/letter_avatar_proxy/v4/letter/t/ee59a6/32.png) [@Takeru](https://forum.seocontentmachine.com/u/Takeru)\
**Post date:** [June 24, 2024, 11:04am UTC](https://forum.seocontentmachine.com/t/how-to-set-cookies-on-website-in-dynamic-scraper/371/1 "2024-06-24T11:04:01Z")

</div>

I’d like to periodically scrape posts that contain certain keywords in X on a weekly basis, is there a way to store cookies?  
For example, the following functionality.

> **[Cookies | ZeroWork](https://docs.zerowork.io/using-zerowork/general-run-schedule-share-webhooks/run-settings/add-cookies)**

---

<div class="post-metadata">

**Author:** ![Tim](https://forum.seocontentmachine.com/user_avatar/forum.seocontentmachine.com/tim/32/486_2.png) [@Tim](https://forum.seocontentmachine.com/u/Tim)\
**Post date:** [June 24, 2024, 12:01pm UTC](https://forum.seocontentmachine.com/t/how-to-set-cookies-on-website-in-dynamic-scraper/371/2 "2024-06-24T12:01:58Z")

</div>

The dynamic scraper browser window does keep cookies.

Do you need set cookies manually?

Anything you do in the dynamic scraper window eg login etc will keep the same login status when the dynamic scraper is re run.

---

<div class="post-metadata">

**Author:** ![Takeru](https://forum.seocontentmachine.com/letter_avatar_proxy/v4/letter/t/ee59a6/32.png) [@Takeru](https://forum.seocontentmachine.com/u/Takeru)\
**Post date:** [June 24, 2024, 8:05pm UTC](https://forum.seocontentmachine.com/t/how-to-set-cookies-on-website-in-dynamic-scraper/371/3 "2024-06-24T20:05:00Z")

</div>

I rarely store cookies in my browser for privacy reasons.  
In particular, I do not use X in my main browser because I have multiple accounts, and I use multi-profile products such as the following  
[https://wavebox.io/](https://wavebox.io/)

So it is more convenient for users like me to give (or not use) a separate cookie for each scraping.

---

<div class="post-metadata">

**Author:** ![Takeru](https://forum.seocontentmachine.com/letter_avatar_proxy/v4/letter/t/ee59a6/32.png) [@Takeru](https://forum.seocontentmachine.com/u/Takeru)\
**Post date:** [June 25, 2024, 1:06am UTC](https://forum.seocontentmachine.com/t/how-to-set-cookies-on-website-in-dynamic-scraper/371/4 "2024-06-25T01:06:05Z")

</div>

Does the browser within SCM match the default browser?  
Also, do you want to automatically generate a different browser profile for each scraping?  
For example, if you have multiple X accounts and you want to create a scraping workflow for X that is different from the workflow for scraping X logged in with account A, you will automatically be logged in as account A. Or is it treated as a new profile like a guest profile?

---

<div class="post-metadata">

**Author:** ![Takeru](https://forum.seocontentmachine.com/letter_avatar_proxy/v4/letter/t/ee59a6/32.png) [@Takeru](https://forum.seocontentmachine.com/u/Takeru)\
**Post date:** [June 25, 2024, 1:13am UTC](https://forum.seocontentmachine.com/t/how-to-set-cookies-on-website-in-dynamic-scraper/371/5 "2024-06-25T01:13:51Z")

</div>

I should have tried it myself and commented.  
I tried it and it seems that the login information for the default browser is irrelevant.  
Also, the newly created X scraping workflow reflected the login information of the previously created X account.  
I would love to see you add a way to make the default a private browser and add cookies, as I don’t think we can handle this as it is now if we want to log in for another X account or if we have multiple accounts, even if they are not X.  
If there is a way to address this at this time, please let me know.

---

<div class="post-metadata">

**Author:** ![bukit](https://forum.seocontentmachine.com/user_avatar/forum.seocontentmachine.com/bukit/32/546_2.png) [@bukit](https://forum.seocontentmachine.com/u/bukit)\
**Post date:** [June 25, 2024, 4:33am UTC](https://forum.seocontentmachine.com/t/how-to-set-cookies-on-website-in-dynamic-scraper/371/6 "2024-06-25T04:33:34Z")

</div>

+1 for add cookie manually, save time doing otp based login.

---

<div class="post-metadata">

**Author:** ![Tim](https://forum.seocontentmachine.com/user_avatar/forum.seocontentmachine.com/tim/32/486_2.png) [@Tim](https://forum.seocontentmachine.com/u/Tim)\
**Post date:** [June 25, 2024, 5:22am UTC](https://forum.seocontentmachine.com/t/how-to-set-cookies-on-website-in-dynamic-scraper/371/7 "2024-06-25T05:22:23Z")

</div>

> [@Takeru](#):
>
> private browser and add cookies

Yes as you discovered, the browser in SCM does not share cookies with the system browser.

Its possible to

1. Give each browser window in SCM its own cookie pool ie partition
2. Allow you to set cookies using JSON eg  
 ![image](https://forum.seocontentmachine.com/uploads/default/original/1X/134e9cf126b0d1cada37950dbcea44c661fe1373.png)

Do you want to use it to set different X log ins per run?

Give me an example of what you want to achieve and the cookies you want to set and I can find a way to build it into the dynamic scraper

---

<div class="post-metadata">

**Author:** ![Takeru](https://forum.seocontentmachine.com/letter_avatar_proxy/v4/letter/t/ee59a6/32.png) [@Takeru](https://forum.seocontentmachine.com/u/Takeru)\
**Post date:** [June 25, 2024, 5:36am UTC](https://forum.seocontentmachine.com/t/how-to-set-cookies-on-website-in-dynamic-scraper/371/8 "2024-06-25T05:36:27Z")

</div>

It is per workflow rather than per run.  
I would simply like a new cookie to be automatically assigned for each dynamic scraper workflow.  
In other words, it would be like Chrome starting with a new profile each time.  
Does this make sense?

---

<div class="post-metadata">

**Author:** ![Tim](https://forum.seocontentmachine.com/user_avatar/forum.seocontentmachine.com/tim/32/486_2.png) [@Tim](https://forum.seocontentmachine.com/u/Tim)\
**Post date:** [June 26, 2024, 4:29am UTC](https://forum.seocontentmachine.com/t/how-to-set-cookies-on-website-in-dynamic-scraper/371/9 "2024-06-26T04:29:15Z")

</div>

That makes sense.

I can add a cookie box that sets the cookie on each run

Do you have an example of a cookie you want to set?

---

<div class="post-metadata">

**Author:** ![Takeru](https://forum.seocontentmachine.com/letter_avatar_proxy/v4/letter/t/ee59a6/32.png) [@Takeru](https://forum.seocontentmachine.com/u/Takeru)\
**Post date:** [June 26, 2024, 6:51am UTC](https://forum.seocontentmachine.com/t/how-to-set-cookies-on-website-in-dynamic-scraper/371/10 "2024-06-26T06:51:07Z")

</div>

Zerowork, an automation product, recommends the use of the following extensions  
They appear to be safe for use.

> **[Chrome Web Store](https://chromewebstore.google.com/detail/empty-title/fngmhnnpilhplaeedifhccceomclgfbg)**
>
> Add new features to your browser and personalize your browsing experience.

---

<div class="post-metadata">

**Author:** ![Takeru](https://forum.seocontentmachine.com/letter_avatar_proxy/v4/letter/t/ee59a6/32.png) [@Takeru](https://forum.seocontentmachine.com/u/Takeru)\
**Post date:** [June 26, 2024, 6:51am UTC](https://forum.seocontentmachine.com/t/how-to-set-cookies-on-website-in-dynamic-scraper/371/11 "2024-06-26T06:51:30Z")

</div>

> **[Cookies | ZeroWork](https://docs.zerowork.io/using-zerowork/general-run-schedule-share-webhooks/run-settings/add-cookies)**

---

<div class="post-metadata">

**Author:** ![Takeru](https://forum.seocontentmachine.com/letter_avatar_proxy/v4/letter/t/ee59a6/32.png) [@Takeru](https://forum.seocontentmachine.com/u/Takeru)\
**Post date:** [June 26, 2024, 6:58am UTC](https://forum.seocontentmachine.com/t/how-to-set-cookies-on-website-in-dynamic-scraper/371/12 "2024-06-26T06:58:01Z")

</div>

Adding cookies manually usually means going into incognito mode, right?

---

<div class="post-metadata">

**Author:** ![Tim](https://forum.seocontentmachine.com/user_avatar/forum.seocontentmachine.com/tim/32/486_2.png) [@Tim](https://forum.seocontentmachine.com/u/Tim)\
**Post date:** [June 26, 2024, 7:48am UTC](https://forum.seocontentmachine.com/t/how-to-set-cookies-on-website-in-dynamic-scraper/371/13 "2024-06-26T07:48:35Z")

</div>

I can’t add extensions to Chrome browser in SCM.

Instead you need to give me a json object to set cookies.

Its not incognito, but we can set unique profile for each run that keeps cookies seperate.

Profiles mean cookies can persist forever, or they clear automatically when SCM app is closed.

Its like having multiple incognito browsers each with their own cookie storage.

If you give me example of cookie you want to set I can figure out what ui we need.

---

<div class="post-metadata">

**Author:** ![Takeru](https://forum.seocontentmachine.com/letter_avatar_proxy/v4/letter/t/ee59a6/32.png) [@Takeru](https://forum.seocontentmachine.com/u/Takeru)\
**Post date:** [June 26, 2024, 7:50am UTC](https://forum.seocontentmachine.com/t/how-to-set-cookies-on-website-in-dynamic-scraper/371/14 "2024-06-26T07:50:10Z")

</div>

I think it would be fine if the cookie is retrieved by the extension in a separate browser that we use.  
In SCM, we only need to be able to save cookies.

---

<div class="post-metadata">

**Author:** ![Tim](https://forum.seocontentmachine.com/user_avatar/forum.seocontentmachine.com/tim/32/486_2.png) [@Tim](https://forum.seocontentmachine.com/u/Tim)\
**Post date:** [June 26, 2024, 7:51am UTC](https://forum.seocontentmachine.com/t/how-to-set-cookies-on-website-in-dynamic-scraper/371/15 "2024-06-26T07:51:18Z")

</div>

Yep correct, just need you to give me sample of cookies.

Say you use above tool, what is output?

That way we can do quick copy paste from cookie tool into SCM.

---

<div class="post-metadata">

**Author:** ![Takeru](https://forum.seocontentmachine.com/letter_avatar_proxy/v4/letter/t/ee59a6/32.png) [@Takeru](https://forum.seocontentmachine.com/u/Takeru)\
**Post date:** [June 26, 2024, 7:52am UTC](https://forum.seocontentmachine.com/t/how-to-set-cookies-on-website-in-dynamic-scraper/371/16 "2024-06-26T07:52:48Z")

</div>

Is there any privacy issue for me if I give you the value of the cookie?

---

<div class="post-metadata">

**Author:** ![Takeru](https://forum.seocontentmachine.com/letter_avatar_proxy/v4/letter/t/ee59a6/32.png) [@Takeru](https://forum.seocontentmachine.com/u/Takeru)\
**Post date:** [June 26, 2024, 7:56am UTC](https://forum.seocontentmachine.com/t/how-to-set-cookies-on-website-in-dynamic-scraper/371/17 "2024-06-26T07:56:46Z")

</div>

I sent sample cookies via chat.

---

<div class="post-metadata">

**Author:** ![Tim](https://forum.seocontentmachine.com/user_avatar/forum.seocontentmachine.com/tim/32/486_2.png) [@Tim](https://forum.seocontentmachine.com/u/Tim)\
**Post date:** [June 26, 2024, 9:52am UTC](https://forum.seocontentmachine.com/t/how-to-set-cookies-on-website-in-dynamic-scraper/371/18 "2024-06-26T09:52:27Z")

</div>

Let me add the cookie box…

---

<div class="post-metadata">

**Author:** ![Tim](https://forum.seocontentmachine.com/user_avatar/forum.seocontentmachine.com/tim/32/486_2.png) [@Tim](https://forum.seocontentmachine.com/u/Tim)\
**Post date:** [July 9, 2024, 9:07pm UTC](https://forum.seocontentmachine.com/t/how-to-set-cookies-on-website-in-dynamic-scraper/371/19 "2024-07-09T21:07:00Z")

</div>

Added box in dynamic scraper:

 ![image](https://forum.seocontentmachine.com/uploads/default/original/2X/d/d1531166ec5150c8bb3de43e3c24c9caeeab65f5.png)

You can paste in JSON string object of cookies to set.

When running

 ![image](https://forum.seocontentmachine.com/uploads/default/original/2X/6/63c38ed50d1759a661eb3d5c48e599aeec96d295.png)

There is a log when parsing cookies

---

<div class="post-metadata">

**Author:** ![Takeru](https://forum.seocontentmachine.com/letter_avatar_proxy/v4/letter/t/ee59a6/32.png) [@Takeru](https://forum.seocontentmachine.com/u/Takeru)\
**Post date:** [July 9, 2024, 9:22pm UTC](https://forum.seocontentmachine.com/t/how-to-set-cookies-on-website-in-dynamic-scraper/371/20 "2024-07-09T21:22:28Z")

</div>

Excellent! Thanks!

[Next page](https://forum.seocontentmachine.com/t/how-to-set-cookies-on-website-in-dynamic-scraper/371.md?page=2)
