7 releases
0.2.1 | Mar 14, 2024 |
---|---|
0.2.0 | Mar 14, 2024 |
0.1.4 | May 7, 2023 |
#489 in Network programming
106 downloads per month
505KB
5K
SLoC
fake_user_agent
A simple library for getting random user agents for rust.
Usage
Get a random user agent from Chrome, Opera, Firefox, Safari, Edge, or Internet Explorer:
use fake_user_agent::get_rua;
let rua = get_rua(); // &'static str
If you want a specific type of browser user agent, you can use the following:
Get a random Chrome user agent:
use fake_user_agent::get_chrome_rua;
let rua = get_chrome_rua(); // &'static str
Get a random Opera user agent:
use fake_user_agent::get_opera_rua;
let rua = get_opera_rua(); // &'static str
Get a random Firefox user agent:
use fake_user_agent::get_firefox_rua;
let rua = get_firefox_rua(); // &'static str
Get a random Safari user agent:
use fake_user_agent::get_safari_rua;
let rua = get_safari_rua(); // &'static str
Get a random Edge user agent:
use fake_user_agent::get_edge_rua;
let rua = get_edge_rua(); // &'static str
Get a random Internet Explorer user agent:
use fake_user_agent::get_ie_rua;
let rua = get_ie_rua(); // &'static str