selenium gets detected through normal automated login, which brings up a recaptcha. however, if you login through the iframe on their selenium page, that seems to bypass the captcha.
((WARNING i'm very new at coding))
from selenium import webdriver
import time
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.firefox.firefox_profile import FirefoxProfile
ff_profile = FirefoxProfile()
ff_profile.set_preference("general.useragent.overr ide", "Mozilla/5.0 (iPhone; CPU iPhone OS 12_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0 Mobile/15E148 Safari/604.1")
browser = webdriver.Firefox(firefox_profile = ff_profile)
browser.set_window_size(800, 800)
browser.get('https://www.whatismybrowser.com')
browser.get('https://www.gaiaonline.com/selenium/core/TestRunner.html?test=..%2Fforum%2F&resultsUrl=..%2 FpostResults')
time.sleep(3)
selTest = browser.find_element_by_id('runSeleniumTest')
selTest.click()
time.sleep(3)
iframe = browser.find_element_by_id('myiframe')
browser.switch_to.frame(iframe)
userName = browser.find_element_by_id('username')
userName.send_keys('USERNAME GOES HERE')
passWord = browser.find_element_by_id('password')
passWord.send_keys('PASSWORD GOES HERE')
signInButton = browser.find_element_by_id('signInButton')
signInButton.send_keys(Keys.ENTER)
Results 1 to 4 of 4
Thread: forum bot proof of concept???
Threaded View
- 20 Nov. 2019 12:13am #1
forum bot proof of concept???