Saves helpful web info to a JSON file using the Chrome Local Storage API.
I was working on a web scraping project where I needed to quickly collect a lot of cookie and referrer data associated with its respective url so I could feed my web scraper with valid data. Instead of opening up the Chrome developer console every time, I built this simple Chrome extension.
- Clone this repo to your local machine.
- Change the url matches under content_scripts in the manifest.json file to the url patterns you would like to gather data from.
- Load the unpacked extension in Google Chrome (chrome://extensions)
- Every time you visit a web site that is included in the url patterns, it will print to console the number of urls that are in storage.
- Then, click the Chrome extension icon to download the JSON file containing all the data.
- After clicking the extension, all previously stored data will be erased (so please do not cancel the download - unless you don't want the data).