5 releases

0.1.4 May 7, 2023
0.1.3 May 7, 2023
0.1.2 May 7, 2023
0.1.1 May 7, 2023
0.1.0 May 7, 2023

#1466 in Development tools

44 downloads per month

MIT license



A simple library for getting random user agents for rust.


Get a random user agent from Chrome, Opera, Firefox, Safari, Edge, or Internet Explorer:

use fake_user_agent::get_rua;
let rua = get_rua(); // String

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(); // String

Get a random Opera user agent:

use fake_user_agent::get_opera_rua;
let rua = get_opera_rua(); // String

Get a random Firefox user agent:

use fake_user_agent::get_firefox_rua;
let rua = get_firefox_rua(); // String

Get a random Safari user agent:

use fake_user_agent::get_safari_rua;
let rua = get_safari_rua(); // String

Get a random Edge user agent:

use fake_user_agent::get_edge_rua;
let rua = get_edge_rua(); // String

Get a random Internet Explorer user agent:

use fake_user_agent::get_ie_rua;
let rua = get_ie_rua(); // String