Skip to content

A rust crate useful for extracting cookies from browsers. Inspired from browsercookie python library

Notifications You must be signed in to change notification settings

jamesredwards/browsercookie-rs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

browsercookie-rs

A rust crate useful for extracting cookies from browsers. Inspired from browsercookie python library.

Library

Usage

Using the library is quite simple

// Cargo.toml
[dependencies]
browsercookie-rs = "0.1.1"
use browsercookie::{Browsercookies, Browser};

let mut bc = Browsercookies::new();
let domain_regex = Regex::new("google.com").unwrap();

bc.from_browser(Browser::Firefox, &domain_regex).expect("Failed to get cookies from firefox");
println!("Cookie header string: Cookie: {}", bc.to_header(domain_regex));

Better example should be present in browsercookies.

Binary

Same crate should also give you a binary browsercookies, which should be usable from your favourite shell for crudely using frontend apis for simple tooling.

browsercookies --domain jira

Install

cargo install -f browsercookie-rs

Feature Matrix

TargetOS Firefox Chrome
Linux
macOS
Windows

About

A rust crate useful for extracting cookies from browsers. Inspired from browsercookie python library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 100.0%