How to edit cookies in Chrome devtools?

When testing web scraping we might need to edit and experiment with cookie values in the browser to understand website's behavior.

Chrome developer tools come with cookie editing feature which can be accessed through Application -> Storage section:

cookie editing section on Chrome developer tools

To edit a cookie, click on the cookie name and change its value. Note that this approach only alters local cookies stored in your browser session. This section also allows to delete all cookies which can be useful when testing whether cookies are required for web scraping.

Question tagged: Tools

Related Posts

How to Use Tor For Web Scraping

In this article, we'll explain web scraping using Tor. For this, we'll use Tor as a proxy server to change the IP address randomly in either HTTP or SOCKS, as well as using it as a rotating proxy server.

How to Know What Anti-Bot Service a Website is Using?

In this article we'll take a look at two popular tools: WhatWaf and Wafw00f which can identify what WAF service is used.

Selenium Wire Tutorial: Intercept Background Requests

In this guide, we'll explore web scraping with Selenium Wire. We'll define what it is, how to install it, and how to use it to inspect and manipulate background requests.