Crates.io | rookie |
lib.rs | rookie |
version | 0.5.2 |
source | src |
created_at | 2023-09-28 02:09:57.78488 |
updated_at | 2024-07-07 12:28:32.086841 |
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 | 134,788 |
Load cookies from any browser on any platform
Rust
, Python
, and JavaScript
TypeScript
, Python
with type hints)Rust
Chrome
restriction like file lockingChrome
based browsers! (requires admin rights on Windows
)Windows
, Linux
, and macOS
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);
}
}
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
, Windows
Linux
, macOS
, Windows
Linux
Linux
, macOS
, Windows
Linux
, macOS
, Windows
Linux
, macOS
, Windows
Linux
, macOS
, Windows
Windows
Linux
, macOS
, Windows
Linux
, macOS
, Windows
macOS
, Windows
macOS
Linux
, macOS
, Windows
You 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 src/windows/config.rs to see what configurations is needed.
Browser | Linux | macOS | Windows |
---|---|---|---|
Arc | 07/08/24 | 07/08/24 | 07/08/24 |
Brave | 01/10/23 | 25/11/23 | 01/10/23 |
Cachy | 04/06/24 | N/A | N/A |
Chromium | 01/10/23 | 25/11/23 | 01/10/23 |
Chrome | 01/10/23 | 25/11/23 | 16/03/24 |
Edge | 01/10/23 | - | 01/10/23 |
Firefox | 01/10/23 | 25/11/23 | 16/03/24 |
IE | N/A | N/A | 01/10/23 |
LibreWolf | 01/10/23 | 25/11/23 | 01/10/23 |
Opera | 01/10/23 | - | 01/10/23 |
Opera GX | N/A | - | 01/10/23 |
Safari | N/A | 02/10/23 | N/A |
Vivaldi | 01/10/23 | 25/11/23 | 01/10/23 |