Here is a quick way to add local storage for any website that is storing tokens inside local storage using python and selenium.
from selenium import webdriver # for webdriver
# Get URL first to load page to run script
# Refresh the page
What is local storage?
A local storage token is a string of text that is stored on the client-side (typically within a web browser) and used to authenticate a user or retain user-specific information, such as preferences or session data. Local storage tokens are commonly used in web applications to persist user data even after the user has closed their browser or navigated away from the site, allowing for a more seamless experience between visits. The token is usually stored in the browser’s local storage or session storage, both of which are client-side storage mechanisms that allow websites to store data in a key-value format.
How to interact with local storage in Selenium?