| Crates.io | rookie |
| lib.rs | rookie |
| version | 0.5.6 |
| created_at | 2023-09-28 02:09:57.78488+00 |
| updated_at | 2024-11-01 19:15:52.150185+00 |
| description | Load cookie from your web browsers |
| homepage | https://crates.io/crates/rookie |
| repository | https://github.com/thewh1teagle/rookie |
| max_upload_size | |
| id | 985474 |
| size | 148,160 |
Load cookies from any browser on any platform
Rust, Python, and JavaScriptTypeScript, Python with type hints)RustChrome restriction of file locking and appbound encryption (requires admin rights on Windows from v130.x)Chrome based browsers! (requires admin rights on Windows)Windows, Linux, and macOScargo 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);
}
}
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'])
npm install @rookie-rs/api
import { brave } from "@rookie-rs/api";
const cookies = brave();
for (const cookie of cookies) {
console.log(cookie);
}
Rust examples/rust
Python examples/python
JavaScript examples/javascript
Rust
Python
JavaScript
You can use rookie as a CLI tool which will decrypt the cookies and print it as JSON
See cli folder
So far the following platforms are supported:
Linux, macOS, WindowsLinux, macOS, WindowsLinuxLinux, macOS, WindowsLinux, macOS, WindowsLinux, macOS, WindowsLinux, macOS, WindowsWindowsLinux, macOS, WindowsLinux, macOS, WindowsmacOS, WindowsmacOSLinux, macOS, WindowsLinux, macOS, WindowsYou are welcome to contribute support for other browsers, or other platforms.
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 rookie-rs/config.json to see what configurations is needed.
| Browser | Linux | macOS | Windows |
|---|---|---|---|
| Arc | 2024/08/07 | 2024/08/07 | 2024/08/07 |
| Brave | 2024/10/26 | 2024/10/26 | 2024/10/26 |
| Cachy | 2024/06/04 | N/A | N/A |
| Chromium | 2024/10/26 | 2024/10/26 | 2024/03/16 |
| Chrome | 2024/10/26 | 2024/10/26 | 2024/03/16 |
| Edge | 2023/10/01 | 2024/08/07 | 2024/03/16 |
| Firefox | 2024/10/26 | 2023/11/25 | 2024/03/16 |
| IE | N/A | N/A | 2024/03/16 |
| LibreWolf | 2023/10/01 | 2023/11/25 | 2023/10/01 |
| Opera | 2023/10/01 | - | 2023/10/01 |
| Opera GX | N/A | - | 2023/10/01 |
| Safari | N/A | 2024/10/26 | N/A |
| Vivaldi | 2023/10/01 | 2023/11/25 | 2023/10/01 |
| Zen | - | 2024/10/26 | - |