CookieSpy is a simple tool for retrieving, displaying, and exporting cookies from a URL.
Supports colorized CLI display (via rich), export to JSON/CSV, and a simple web-based GUI (Flask).
With PyPI
pip install cookiespyOr clone this repository(recommended)
https://github.com/fdhliakbar/CookieSpy.git docker build -t cookiespy:latest .🔍 Mengambil cookies...
✔ Cookies ditemukan: {'_gh_sess':
'3TLOJqcMKU9Mi5JN8EkecauN9FsSaImjhCOiKu8YDXpalofmkZbBe1xYtVDBFYf6bmbNh6MTfg8IVY2wsq%2FVN46DF2ok51y2O%2FHGYnq1X8qXX3zLmRFtZzierEp1O%2BuPy9StY3jL11vTVDNmjvX2%2Bdfy99JZ0fZOc
Dle6ZmLE0%2F8kvP6oMMB%2FGhOb0jGTwRPpEuAfmy%2BFmoGfg%2FqUZTpNk6JvPifKDVLAFwVPH08JyFwuf2YxM1tRs1S2Rx7H%2B%2Blo8mLWUKKDpVeGaONLYeNbQ%3D%3D--2bPnIxmDdV4DSGDx--L5Zjb9nicw2HqWy
0LoVW%2BQ%3D%3D', '_octo': 'GH1.1.89567047.1755552745', 'logged_in': 'no'}
``` -->
### Install Packages
```bash
pip install dist/cookiespy-0.1.0-py3-none-any.whl
Installing collected packages: cookiespy
Successfully installed cookiespy-0.1.0# Export with JSON
cookiespy https://youtube.com/ --export json
# Export with CSV
cookiespy https://youtube.com/ --export csv
Fetching cookies from: https://facebook.com/
Cookies found: {'fr': '0qhvcEPszmVSmExBF..Boqw-r..AAA.0.0.Boqw-r.AWe5t84W9KkqFc6QoQPZqX7icCs', 'sb': 'qw-raOaLC5CvSSBM3qNhw0wf'}
[+] Cookies diexport ke cookies.json
Exported cookies to cookies.jsonFetching cookies from: https://facebook.com/
Cookies found: {'fr': '0o5AyAWMjYLU5Wf8G..Boqw_G..AAA.0.0.Boqw_G.AWejVulJjL0qf-r097kKCKBqM4k', 'sb': 'xg-raIpCTxgOpbwcUJfHj7bj'}
[+] Cookies diexport ke cookies.csv
Exported cookies to cookies.csvimport cookiespy
url = "https://youtube.com"
cookies = cookiespy.get_cookies(url)
print(cookies)python your_file.py
{'GPS': '1', 'YSC': 'ZURMJelC7BE', '__Secure-ROLLOUT_TOKEN': 'CLCs2Yu9lrzMIhD2lbW716OPAxj2lbW716OPAw%3D%3D', 'VISITOR_INFO1_LIVE': 'OF9aXStzneU', 'VISITOR_PRIVACY_METADATA': 'CgJJRBIEGgAgJQ%3D%3D'}Support for Various Browsers: Currently, CookieSpy uses requests, which do not run JavaScript. Many cookies, especially for analytics and tracking, are set via JavaScript.Session Management (Login): Distinguishing between session cookies and persistent cookies, as well as first-party and third-party cookies, and increasing export formatsIncreased OutputInteractive mode and GUI
If you have any questions or would like to contribute, you can make a pull request from my repository or contact me via email at fadhliakbar125.
