{"id":13680611,"url":"https://github.com/thewh1teagle/rookie","last_synced_at":"2025-04-14T05:15:58.634Z","repository":{"id":196742247,"uuid":"697042195","full_name":"thewh1teagle/rookie","owner":"thewh1teagle","description":"Load cookies from your web browsers","archived":false,"fork":false,"pushed_at":"2024-11-23T02:47:17.000Z","size":1671,"stargazers_count":261,"open_issues_count":16,"forks_count":26,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-06T05:56:53.797Z","etag":null,"topics":["browser","cookies","rust","winapi"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/rookie","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thewh1teagle.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"MIT-LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-09-26T23:55:43.000Z","updated_at":"2025-04-03T16:12:08.000Z","dependencies_parsed_at":"2023-09-27T07:56:42.864Z","dependency_job_id":"32347237-1c29-4357-9e91-fa16998316e6","html_url":"https://github.com/thewh1teagle/rookie","commit_stats":{"total_commits":440,"total_committers":9,"mean_commits":"48.888888888888886","dds":"0.050000000000000044","last_synced_commit":"60ba7ae7f748c5b423deb608bacf42e6b96e03cc"},"previous_names":["thewh1teagle/rookie"],"tags_count":51,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thewh1teagle%2Frookie","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thewh1teagle%2Frookie/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thewh1teagle%2Frookie/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thewh1teagle%2Frookie/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thewh1teagle","download_url":"https://codeload.github.com/thewh1teagle/rookie/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247578546,"owners_count":20961270,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["browser","cookies","rust","winapi"],"created_at":"2024-08-02T13:01:19.162Z","updated_at":"2025-04-07T02:05:17.487Z","avatar_url":"https://github.com/thewh1teagle.png","language":"Rust","funding_links":[],"categories":["Rust","Libraries"],"sub_categories":["Web programming"],"readme":"# rookie\r\n\r\n[![PyPi Downloads](https://img.shields.io/pypi/dm/rookiepy?logo=python)](https://pypi.org/project/rookiepy/)\r\n[![PyPi Version](https://img.shields.io/pypi/v/rookiepy?color=00aa00\u0026logo=python)](https://pypi.org/project/rookiepy/)\r\n[![NPM Version](https://img.shields.io/npm/v/@rookie-rs/api?logo=npm\u0026color=0076CE)](https://www.npmjs.com/package/@rookie-rs/api)\r\n[![Crates](https://img.shields.io/crates/v/rookie?logo=rust)](https://crates.io/crates/rookie/)\r\n[![License](https://img.shields.io/github/license/thewh1teagle/rookie?color=00aaaa\u0026logo=license)](https://github.com/thewh1teagle/rookie/blob/main/rookie-rs/MIT-LICENSE.txt)\r\n\r\nLoad cookies from any browser on any platform\r\n\r\n## Features 🚀\r\n\r\n- Available for `Rust`, `Python`, and `JavaScript`\r\n- Ensures type safety (e.g., `TypeScript`, `Python` with type hints)\r\n- Super Fast, Built with `Rust`\r\n- Bypass `Chrome` restriction of file locking and appbound encryption (requires admin rights on `Windows` from v130.x)\r\n- Read session cookies from `Chrome` based browsers! (requires admin rights on `Windows`)\r\n- Wide browsers support\r\n- Cross-platform support for `Windows`, `Linux`, and `macOS`\r\n\r\n## Usage ⚙️\r\n\r\n## Rust\r\n\r\n```shell\r\ncargo add rookie\r\n```\r\n\r\nCreate `main.rs` with the following\r\n\r\n```rust\r\nuse rookie::brave;\r\n\r\nfn main() {\r\n    let domains = vec![\"google.com\"];\r\n    let cookies = brave(Some(domains)).unwrap();\r\n    for cookie in cookies {\r\n        println!(\"{:?}\", cookie);\r\n    }\r\n}\r\n```\r\n\r\n## Python\r\n\r\n```shell\r\npip install rookiepy\r\n```\r\n\r\nAnd the usage it similar to Rust\r\n\r\n```python\r\nimport rookiepy\r\ncookies = rookiepy.firefox([\"google.com\"])\r\nfor cookie in cookies:\r\n    print(cookie['domain'], cookie['value'])\r\n```\r\n\r\n## JavaScript\r\n\r\n```console\r\nnpm install @rookie-rs/api\r\n```\r\n\r\n```js\r\nimport { brave } from \"@rookie-rs/api\";\r\nconst cookies = brave();\r\nfor (const cookie of cookies) {\r\n  console.log(cookie);\r\n}\r\n```\r\n\r\n## Examples 📋\r\n\r\n`Rust` [examples/rust](examples/rust)\r\n\r\n`Python` [examples/python](examples/python)\r\n\r\n`JavaScript` [examples/javascript](examples/javascript)\r\n\r\n## Docs 📘\r\n\r\n`Rust`\r\n\r\n- [docs/Rust.md](docs/Rust.md)\r\n- [docs.rs/rookie](https://docs.rs/rookie)\r\n\r\n`Python`\r\n\r\n- [docs/Python.md](docs/Python.md)\r\n\r\n`JavaScript`\r\n\r\n- [docs/JavaScript.md](docs/JavaScript.md)\r\n\r\n## CLI 💻\r\n\r\nYou can use rookie as a `CLI` tool which will decrypt the cookies and print it as `JSON`  \r\nSee [cli](https://github.com/thewh1teagle/rookie/tree/main/cli) folder\r\n\r\n## Contribute 🤝\r\n\r\nSo far the following platforms are supported:\r\n\r\n- **Arc:** `Linux`, `macOS`, `Windows`\r\n- **Brave:** `Linux`, `macOS`, `Windows`\r\n- **Cachy:** `Linux`\r\n- **Chrome:** `Linux`, `macOS`, `Windows`\r\n- **Chromium:** `Linux`, `macOS`, `Windows`\r\n- **Edge:** `Linux`, `macOS`, `Windows`\r\n- **Firefox:** `Linux`, `macOS`, `Windows`\r\n- **Internet Explorer:** `Windows`\r\n- **LibreWolf:** `Linux`, `macOS`, `Windows`\r\n- **Opera:** `Linux`, `macOS`, `Windows`\r\n- **Opera GX:** `macOS`, `Windows`\r\n- **Safari:** `macOS`\r\n- **Vivaldi:** `Linux`, `macOS`, `Windows`\r\n- **Zen:** `Linux`, `macOS`, `Windows`\r\n\r\nYou are welcome to contribute support for other browsers, or other platforms.\r\n\r\n## Support new browsers 🌐\r\n\r\nIf 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.\r\n\r\nlook at [rookie-rs/config.json](rookie-rs/config.json) to see what configurations is needed.\r\n\r\n## Testing Dates (DD/MM/YY) 📅\r\n\r\n| Browser   |   Linux    |   macOS    |  Windows   |\r\n| :-------- | :--------: | :--------: | :--------: |\r\n| Arc       | 2024/08/07 | 2024/08/07 | 2024/08/07 |\r\n| Brave     | 2024/10/26 | 2024/10/26 | 2024/10/26 |\r\n| Cachy     | 2024/06/04 |    N/A     |    N/A     |\r\n| Chromium  | 2024/10/26 | 2024/10/26 | 2024/03/16 |\r\n| Chrome    | 2024/10/26 | 2024/10/26 | 2024/03/16 |\r\n| Edge      | 2023/10/01 | 2024/08/07 | 2024/03/16 |\r\n| Firefox   | 2024/10/26 | 2023/11/25 | 2024/03/16 |\r\n| IE        |    N/A     |    N/A     | 2024/03/16 |\r\n| LibreWolf | 2023/10/01 | 2023/11/25 | 2023/10/01 |\r\n| Opera     | 2023/10/01 |     -      | 2023/10/01 |\r\n| Opera GX  |    N/A     |     -      | 2023/10/01 |\r\n| Safari    |    N/A     | 2024/10/26 |    N/A     |\r\n| Vivaldi   | 2023/10/01 | 2023/11/25 | 2023/10/01 |\r\n| Zen       |     -      | 2024/10/26 |     -      |\r\n\r\n## Credits 🙌\r\n\r\n[github.com/borisbabic/browser_cookie3](https://github.com/borisbabic/browser_cookie3)\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthewh1teagle%2Frookie","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthewh1teagle%2Frookie","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthewh1teagle%2Frookie/lists"}