There are only two functions in this package:
filter_useragent
and random_useragent
. They
both accept same arguments to subset from all the useragent strings
provided in this package.
The most simple way of generating random UA string is:
Or we can choose the UA string used by Chrome browser on Windows machine:
random_useragent(software_name = "Chrome", operating_system_name = "Windows")
#> [1] "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/38.0.2125.111 Safari/537.36"
Or we can choose Safari from Mac OS X: