Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 353 Bytes

README.md

File metadata and controls

15 lines (10 loc) · 353 Bytes

random-user-agent-java

Generate Random User-agent strings in java. Useful in web-scraping.

Just import the file in your project and call

RandomUserAgent.getRandomUserAgent()

This will return a random user-agent string with the following probability:

Internet Explorer: 11.8%
Firefox: 28.2%
Chrome: 52.9%
Safari: 3.9%
Opera: 1.8%