Crates.io | fenrir |
lib.rs | fenrir |
version | 0.1.1 |
source | src |
created_at | 2020-07-13 20:08:55.868324 |
updated_at | 2020-07-14 17:43:12.072202 |
description | Locates wifi devices using services such as wigle.net |
homepage | |
repository | https://github.com/wisespace-io/fenrir |
max_upload_size | |
id | 264806 |
size | 39,192 |
Locates wifi devices using services such as wigle.net
After creating an account on wigle.net, visit https://wigle.net/account to get your API Token. It correspondes to the "Encoded for use" field.
use async_std::task;
use fenrir::api::*;
use fenrir::wigle::api::*;
fn main() -> Result<(), surf::Exception> {
let token = std::env::var("WIGLE_TOKEN").expect("Provide your WIGLE_TOKEN as an environment variable");
task::block_on(async {
let wigle: Wigle = Fenrir::new(Some(token));
let geo_response = wigle.geocode("1600 Amphitheatre Parkway").await?;
dbg!(geo_response);
let search_response = wigle.search_bssid("00:00:00:00:00:00").await?;
dbg!(search_response);
Ok(())
})
}
## Mylnikov api
It does not require an API token, it is completely free.
```rust
use async_std::task;
use fenrir::api::*;
use fenrir::mylnikov::api::*;
fn main() -> Result<(), surf::Exception> {
task::block_on(async {
let mylnikov: Mylnikov = Fenrir::new(None);
let search_response = mylnikov.search_bssid("00:00:00:00:00:00").await?;
dbg!(search_response);
Ok(())
})
}