Selenium for browsergame bot?

Nighcore2

Registered Member
Joined
Apr 30, 2019
Messages
69
Reaction score
4
So i want to create a bot for some online browser game, it has captcha etc but isnt a problem my question is.

-How i can make selenium undetectable? or there is any other easier way ?
-Appart from obvius think like user agent, headers and look like a human while doing things(delays) should i look for something more?
-If selenium isnt a option, where should i look? i see these
-I want to run multiple instances of these bot, accounts in game, handling cookies and storing will be a problem with selenium? i want to look as more as human possible
https://www.blackhatworld.com/seo/best-way-to-write-create-bots.963113/

are those tools good still? the ones thath first message says
 
You cannot make selenium undetectable.. If you are botting big companies.. hiding your fingerprints these days is quite impossible. No alternatives are publicly available.
 
Have you looked into automating with iMacros? since it runs in a browser, you can have multiple profiles running simultaneously and Firefox has addons to randomize user agents. If you search good enough you can find ways to use JavaScript based automation too.
 
Have you looked into automating with iMacros? since it runs in a browser, you can have multiple profiles running simultaneously and Firefox has addons to randomize user agents. If you search good enough you can find ways to use JavaScript based automation too.
the idea is to run in a server several accounts witouth GUI
 
but Selenium does use a GUI. you can run it headless. it just hides the GUI as far as I know
 
its pretty hard making selenium undetectalbe but any other library that is based on cef is quite good
also look for browser automation studio
 
its a imnogames game.
I dont believe there are no alternatives, i see a bunch of low quality developers developing bots
for example
http://www.ultimatetribalwarsbot.net/

Crazy this person updated and ran that bot for over 5 years. Really curious how much money they got from that.
 
Could i possibly have a look at the site?
-I want to run multiple instances of these bot, accounts in game, handling cookies and storing will be a problem with selenium?
Cookies are easy in selenium
Code:
from selenium import webdriver
'''
Cookie format simple list of dicts

cookies = [
            {
             'domain':'sample.com',
             'etc':'etcetc'
             },

             {
             'domain':'fdsfdsa.cn',
             'etc':'etceetctc'
             }

]



'''

driver = webdriver.Chrome()
driver.get("http://google.com")

cookies = driver.get_cookies()

for cookie in cookies:
    print cookie

    for key in cookie:
        print key ," => ",cookie[key]

    print "="*15+"\n"


print "Adding cookies!!"

cookies.append({"ninjacookie":"omnomnom"})

print "Finished adding cookies"

new_cookies = driver.get_cookies()

for new_cookie in new_cookies:
    print new_cookie

print cookies
print type(cookies)


driver.quit()
 
So i want to create a bot for some online browser game, it has captcha etc but isnt a problem my question is.

-How i can make selenium undetectable? or there is any other easier way ?
-Appart from obvius think like user agent, headers and look like a human while doing things(delays) should i look for something more?
-If selenium isnt a option, where should i look? i see these
-I want to run multiple instances of these bot, accounts in game, handling cookies and storing will be a problem with selenium? i want to look as more as human possible
https://www.blackhatworld.com/seo/best-way-to-write-create-bots.963113/

are those tools good still? the ones thath first message says
Yes you can make Selenium undetectable. The reason it's detectable is because it triggers the navigator.webdriver flag in your browser.

Go here to see how some people have fixed it. You can either disable the flag using selenium directly or do some JavaScript injection to change the flag in the browser.
https://stackoverflow.com/questions...ator-webdriver-flag-to-prevent-selenium-detec
 
Back
Top