Home

Awesome

rookie

PyPi Downloads PyPi Version NPM Version Crates License

Load cookies from any browser on any platform

Features 🚀

Usage ⚙️

Rust

cargo add rookie

Create main.rs with the following

use rookie::brave;

fn main() {
    let domains = vec!["google.com"];
    let cookies = brave(Some(domains)).unwrap();
    for cookie in cookies {
        println!("{:?}", cookie);
    }
}

Python

pip install rookiepy

And the usage it similar to Rust

import rookiepy
cookies = rookiepy.firefox(["google.com"])
for cookie in cookies:
    print(cookie['domain'], cookie['value'])

JavaScript

npm install @rookie-rs/api
import { brave } from "@rookie-rs/api";
const cookies = brave();
for (const cookie of cookies) {
  console.log(cookie);
}

Examples 📋

Rust examples/rust

Python examples/python

JavaScript examples/javascript

Docs 📘

Rust

Python

JavaScript

CLI 💻

You can use rookie as a CLI tool which will decrypt the cookies and print it as JSON
See cli folder

Contribute 🤝

So far the following platforms are supported:

You are welcome to contribute support for other browsers, or other platforms.

Support new browsers 🌐

If you have a browser with which the library isn't working with, it may not have been added to the list of supported browsers configs. You can create a pull request (PR) or an issue with the path to the cookies file on your computer, and I will add it.

look at src/windows/config.rs to see what configurations is needed.

Testing Dates (DD/MM/YY) 📅

BrowserLinuxmacOSWindows
Arc07/08/2407/08/2407/08/24
Brave01/10/2325/11/2301/10/23
Cachy04/06/24N/AN/A
Chromium01/10/2325/11/2301/10/23
Chrome01/10/2325/11/2316/03/24
Edge01/10/23-01/10/23
Firefox01/10/2325/11/2316/03/24
IEN/AN/A01/10/23
LibreWolf01/10/2325/11/2301/10/23
Opera01/10/23-01/10/23
Opera GXN/A-01/10/23
SafariN/A02/10/23N/A
Vivaldi01/10/2325/11/2301/10/23

Credits 🙌

github.com/borisbabic/browser_cookie3