Bob The Builder 62 Posted September 5, 2011 Report Share Posted September 5, 2011 I wanted to create a library for a random user agent from a big pool of user agents. Anyone is welcome to use this rather simple code to add that functionality into their bot.It selects from a pool of 120 unique and recent user agents for IE, FF, and Chrome and sets it to one of them. The code should be self explanatory as it is silly simple. Enjoy!useragents.ubot 5 Quote Link to post Share on other sites
lowno 2 Posted September 5, 2011 Report Share Posted September 5, 2011 I wanted to create a library for a random user agent from a big pool of user agents. Anyone is welcome to use this rather simple code to add that functionality into their bot.It selects from a pool of 120 unique and recent user agents for IE, FF, and Chrome and sets it to one of them. The code should be self explanatory as it is silly simple. Enjoy! Thanks, this is great. I was looking at this in the new ubot 4, but didn't think of adding a variable to the existing list. Quote Link to post Share on other sites
malefic 48 Posted September 5, 2011 Report Share Posted September 5, 2011 Cheers for that - at the mo I just use the $spin function to select one of the inbuilt ones Quote Link to post Share on other sites
Bob The Builder 62 Posted September 5, 2011 Author Report Share Posted September 5, 2011 Cheers for that - at the mo I just use the $spin function to select one of the inbuilt ones I wanted a smaller foot print than 6 different user agents. Quote Link to post Share on other sites
CreativeWurks 9 Posted September 7, 2011 Report Share Posted September 7, 2011 Thanks for this... this will definitely help me out.. Quote Link to post Share on other sites
Pete 121 Posted September 7, 2011 Report Share Posted September 7, 2011 Nice and as you say silly simple when you see the light One for the library Quote Link to post Share on other sites
sonneti 0 Posted September 12, 2011 Report Share Posted September 12, 2011 Nice and as you say silly simple when you see the light One for the library Download working for everyone? I tried to open the .ubot but get this error message: http://minus.com/mBYCNlHgc Quote Link to post Share on other sites
Bob The Builder 62 Posted September 12, 2011 Author Report Share Posted September 12, 2011 Download working for everyone? I tried to open the .ubot but get this error message: http://minus.com/mBYCNlHgc This is a v4 file. Quote Link to post Share on other sites
Bottist 0 Posted January 19, 2012 Report Share Posted January 19, 2012 I can t download, I dont understand plz help. P Quote Link to post Share on other sites
matflawless 7 Posted January 20, 2012 Report Share Posted January 20, 2012 I'd like to download but seems that I have some forum restriction so I can't Thanks anyway!Mat Quote Link to post Share on other sites
MarketSeed 0 Posted January 25, 2012 Report Share Posted January 25, 2012 Thanks! I was looking for a list of user agents to build this myself then I found yours. Exactly what I needed! Quote Link to post Share on other sites
cristolux 0 Posted January 28, 2012 Report Share Posted January 28, 2012 I'd like to download but seems that I have some forum restriction so I can't Thanks anyway!Mat Ya, you're not the only one.... Quote Link to post Share on other sites
a2mateit 395 Posted January 28, 2012 Report Share Posted January 28, 2012 I can t download, I dont understand plz help.P I'd like to download but seems that I have some forum restriction so I can't :(Thanks anyway!Mat Ya, you're not the only one.... You guys really should read the forum...http://ubotstudio.com/forum/index.php?/topic/7731-getting-errors-posting/page__pid__46963#entry46963 Quote Link to post Share on other sites
matflawless 7 Posted February 6, 2012 Report Share Posted February 6, 2012 Yes, it has been resolved now, thanks Quote Link to post Share on other sites
fuckbiggg 0 Posted February 20, 2012 Report Share Posted February 20, 2012 i can not download it. Quote Link to post Share on other sites
e11072008 0 Posted April 20, 2012 Report Share Posted April 20, 2012 these user agents are very unreliable when using with youtube account maker, any ideas where i can get a good list? Quote Link to post Share on other sites
Bob The Builder 62 Posted April 20, 2012 Author Report Share Posted April 20, 2012 these user agents are very unreliable when using with youtube account maker, any ideas where i can get a good list? How so? It worked fine for me, but I haven't tested it with the YouTube agent.I just created a big list off recent versions a while ago. I don't use it that often. Quote Link to post Share on other sites
Legend 181 Posted April 21, 2012 Report Share Posted April 21, 2012 YouTube bots seem to have trouble with certain fields using certain user agents... I don't know if its Google's anti-bot measures or something else entirely but certain user agents (like Firefox) have a lot of problems with YouTube. If using the monster user agent list you might want to put a few more if commands in there to make sure its working properly... Quote Link to post Share on other sites
Ammar 0 Posted July 11, 2016 Report Share Posted July 11, 2016 Facing problem downloading attachment...... We could not find the attachment you were attempting to view. Quote Link to post Share on other sites
HelloInsomnia 1103 Posted July 12, 2016 Report Share Posted July 12, 2016 Facing problem downloading attachment...... We could not find the attachment you were attempting to view. It's an old post and so the user agents will also be very old. I suggest grabbing a new list from here: https://techblog.willshouse.com/2012/01/03/most-common-user-agents/- despite the date in the URL being old the actual list is updated all the time. 2 Quote Link to post Share on other sites
Chris M 55 Posted July 12, 2016 Report Share Posted July 12, 2016 You could use something like this: download file("http://techpatterns.com/downloads/firefox/useragentswitcher.xml", "{$special folder("Desktop")}\\useragentswitcher.xml") wait(1) clear list(%Useragents) add list to list(%Useragents, $list from text($find regular expression($read file("{$special folder("Desktop")}\\useragentswitcher.xml"), "(?<=useragent=\").*?(?=\")"), " "), "Delete", "Global") save to file("{$special folder("Desktop")}\\Useragents.txt", %Useragents) Quote Link to post Share on other sites
patrickme 0 Posted December 29, 2016 Report Share Posted December 29, 2016 Hey, user agent seems to always be the same when I try that (C&P the script above) and check it against a site like http://www.whoishostingthis.com/tools/user-agent/ Quote Link to post Share on other sites
welltodo 0 Posted March 19, 2017 Report Share Posted March 19, 2017 why i cant download this file ? Quote Link to post Share on other sites
Tumble gajiya 0 Posted December 10, 2017 Report Share Posted December 10, 2017 It's an old post and so the user agents will also be very old. I suggest grabbing a new list from here: https://techblog.willshouse.com/2012/01/03/most-common-user-agents/- despite the date in the URL being old the actual list is updated all the time.Great list for me. Quote Link to post Share on other sites
danang92 0 Posted May 1, 2018 Report Share Posted May 1, 2018 canot downl;oad Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.