#user-agent #random-user-agent #user-agent-generator

fake_user_agent

A simple library for getting random user agents for rust

7 releases

0.2.1 Mar 14, 2024
0.2.0 Mar 14, 2024
0.1.4 May 7, 2023

#492 in Network programming

Download history 7/week @ 2024-07-22 39/week @ 2024-07-29 30/week @ 2024-08-05 53/week @ 2024-08-12 22/week @ 2024-08-19 13/week @ 2024-08-26 2/week @ 2024-09-02 23/week @ 2024-09-09 33/week @ 2024-09-16 31/week @ 2024-09-23 77/week @ 2024-09-30 24/week @ 2024-10-07 19/week @ 2024-10-14 13/week @ 2024-10-21 42/week @ 2024-10-28

102 downloads per month

MIT license

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

Dependencies