Cookie
Learn how to use your cookies in MrScraper to access restricted content.
Cookies are small pieces of data stored by your web browser that help websites remember your preferences and session information.
In MrScraper, you can use cookies to access content that may be restricted or personalized based on your previous interactions with a website. Here's how to set up and use cookies in MrScraper:
Step 1: Obtaining Cookies
You’ll first need to extract the cookies from your browser. There are a few ways to do this:
Using Browser Developer Tools
Chrome / Edge / Brave
- Open your web browser and navigate to the website you want to scrape.
- Open the developer tools (usually by pressing
F12or right-clicking and selecting "Inspect"). - Go to the "Application" or "Storage" tab, then find the "Cookies" section.
- Select the website's URL to view the cookies stored for that site.
- Copy the cookies you need (usually as key-value pairs).
Firefox
- Open your web browser and navigate to the website you want to scrape.
- Right click on the page and select "Inspect Element" to open the developer tools.
- Go to the "Storage" tab, then find the "Cookies" section.
- Copy the cookies you need (usually as key-value pairs).
Using Browser Extensions
You can also use browser extensions to quickly view, manage, and export cookies. Popular options include:
- EditThisCookie (Chrome)
- Cookie Quick Manager (Firefox)
- Cookie Editor
Step 2: Using Cookies in your Scraper
- Navigate to your MrScraper dashboard.
- click Scraper in the left sidebar, and click on the scraper you want to add cookies to.
- Press the ellipsis (three dots) button on the top right corner of the scraper details page.
- Select Set Cookies Settings from the dropdown menu.
- Paste the JSON cookies you exported earlier into the provided field.
[
{
"domain": "www.example.com",
"expirationDate": 1764823423.823961,
"hostOnly": true,
"httpOnly": false,
"name": "token",
"path": "/",
"sameSite": "strict",
"secure": false,
"session": false,
"storeId": null,
"value": "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VybmFtZSI6ImtpemEiLCJleHAiOjE3NjQ4MjM0MjN9.qvviwvaTZDc9ey0iW638cdZr-EdiGHOfKsvTahZ_nIs"
}
]