JE
Jenderal92/Cookie-Edit
A high-performance modular CLI tool to manage, analyze, and test HTTP cookies. Features real-time health tracking, domain grouping, and curl export integration.
๐ช Cookie-Edit
Cookie-Edit is a lightweight, professional CLI tool built for developers to manage, test, and analyze HTTP cookies. Designed with a clean modular architecture, it's perfect for debugging APIs and testing web sessions directly from your terminal or Termux.
โจ Features
- Centralized Management: Create, Read, Update, and Delete (CRUD) cookies in a local JSON store.
- Smart Grouping: Organize and view cookies automatically grouped by their domain.
- Health Tracking: Monitor cookie expiration with real-time "Live" vs "Expired" status indicators.
- Request Engine: Send GET/POST requests and automatically capture new cookies from server responses.
- Curl Integration: Instantly generate
--cookiestrings for use in external terminal commands. - Deep Analytics: View statistics on your cookie jar, including Secure and HttpOnly flags.
- One-Click Cleanup: Quickly wipe all expired cookies to keep your workspace clean.
๐ Project Structure
Cookie-Edit/
โโโ main.py # Application entry point
โโโ network/ # HTTP request and capture logic
โโโ core/ # Data management and cookie health logic
โโโ utils/ # Table rendering, JSON I/O, and logging
โโโ config/ # Path and environment settings
โโโ data/ # Local storage (cookies.json)
๐ Getting Started
- Clone the repository:
git clone https://github.com/Jenderal92/Cookie-Edit.git
cd Cookie-Edit
- Install dependencies:
pip install -r requirements.txt
- Run the tool:
python main.py
๐ Usage
- Testing APIs: Use the HTTP Request menu to see how a server interacts with your current cookies.
- Debugging: Check the "Health" status to ensure your session hasn't timed out during testing.
- Migration: Export your session as a Curl string to continue testing in other professional tools.
๐ก Security
Cookie-Edit stores data locally in data/cookies.json. To protect your session data, the data/ directory is included in .gitignore to prevent it from being uploaded to public repositories.