CacheCopiator is a toolkit to record and restore web sessions using Chrome. It saves cookies, localStorage, and sessionStorage into a .json file and allows you to replay that session at any time.
No Python installation required — compiled Windows binaries are included!
- 📥 Record session data from any URL (cookies + storage)
- 📤 Replay session later using the same browser context
- 🖱️ CLI or Windows
.exesupport (no Python setup needed) - 🗃️ Saves to a single JSON file
.
├── bin/ # Precompiled Windows binaries
│ ├── cachr.exe # Session recorder
│ └── sesp.exe # Session restorer
├── cachr.py # Python source (optional)
├── sesp.py # Python source (optional)
└── README.md1.Download the latest release (CacheCopiatorUtility.zip) and unzip it to any folder.
- Add to PATH (optional, for easy access)
To runcachr.exeandsesp.exefrom any terminal window, you can add the bin folder to your system PATH:
- 🔧 How to do it (Windows):
- Press
Win + R, typesysdm.cpl, press Enter. - Go to Advanced → Environment Variables.
- Under System variables, find and select Path, then click Edit.
- Click
Newand paste the full path to the bin folder(e.g., C:\Users\YourName\CacheCopiatorUtility\bin). - Click OK to save.
Now you can run the tools directly from cmd or PowerShell:
cachr --url https://example.com --out session_example.json
sesp --url https://example.com --cache session_example.json
Install requirements:
pip install selenium webdriver-manager
Then:
python cachr.py --url https://example.com --out session_example.json
python sesp.py --url https://example.com --cache session_example.json
Each session is saved as a .json file like this:
{
"url": "https://example.com",
"cookies": [ ... ],
"localStorage": { ... },
"sessionStorage": { ... }
}
Session files may contain sensitive authentication tokens. Do not share them. Also in newest update I added incognito mode for pages that pop-up in process.
Pull requests and suggestions are welcome! Fork it and improve it.
MIT License
Made by Jjponvv