Crates.io | goofy |
lib.rs | goofy |
version | 0.2.0 |
source | src |
created_at | 2020-10-26 20:52:14.543829 |
updated_at | 2020-10-31 11:56:32.027632 |
description | Rust bindings to the mobile instagram API |
homepage | |
repository | https://github.com/yvessavoy/goofy |
max_upload_size | |
id | 305744 |
size | 14,718 |
Goofy provides rust bindings to the mobile instagram API.
use goofy::Client;
fn main() {
let username = "foo";
let password = "bar";
let client = Client::new(username, password).expect("Could not create client");
let profile = client.get_profile_by_username("mozilla");
assert_eq!(profile.username, "mozilla");
}
use goofy::Client;
fn main() {
let username = "foo";
let password = "bar";
let client = Client::new(username, password).expect("Could not create client");
let profile = client.get_profile_by_(7107542290);
assert_eq!(profile.username, "mozilla");
}
This is especially useful when you repeatedly start your program. Storing the client to disk avoids repeated login and thus lowers the chance of getting blocked by instagram.
use goofy::Client;
fn main() {
let username = "foo";
let password = "bar";
let client = Client::new(username, password).expect("Could not create client");
client.export("goofy-session.txt").expect("Could not persist client to disk");
}