taufiqkyu 0 Posted April 1, 2019 Report Share Posted April 1, 2019 (edited) Hi , i use exbrowser. i have a problem with recaptcha. i i want to use it for pinterest login. i can not find submit button for recaptcha, so i use chromex extension to solve this problem. but now i get a problem is how to input 2captcha API key on exbrowser. i open the extension setting page. but when i run my bot to change attribute or type text to insert API key, it always failed. i can't insert my api key. is there any advice to setting it? thanks chrome extension : https://chrome.google.com/webstore/detail/recaptcha-solver/hapgiopokcmcnjmakciaeaocceodcjdn?hl=en plugin command("ExBrowser.dll", "ExBrowser CleanUp Light")plugin command("ExBrowser.dll", "ExBrowser Launcher", "Chrome", "", $plugin function("ExBrowser.dll", "$ExBrowser Load Browser Extension", "{$special folder("My Documents")}\\recaptcha.crx"))plugin command("ExBrowser.dll", "ExBrowser Navigate", "https://www.pinterest.com/login/?referrer=home_page")plugin command("ExBrowser.dll", "ExBrowser Open New Browser Tab")plugin command("ExBrowser.dll", "ExBrowser Navigate", "chrome://extensions/?options=jlpjbenpdkegffadflolhdebflalagfb")wait(2)plugin command("ExBrowser.dll", "ExBrowser Change Attribute", "x://input[contains(@id,\"apiKey\")]", "value", "xxxxxxxx")plugin command("ExBrowser.dll", "ExBrowser Type Text", "x://input[contains(@id,\"apiKey\")]", "xxxxxxx")wait(1)plugin command("ExBrowser.dll", "ExBrowser Change Checkbox", "x://input[contains(@id,\"Auto\")]", "Checked")wait(1)plugin command("ExBrowser.dll", "ExBrowser Change Checkbox", "x://input[contains(@id,\"AutoClick\")]", "Checked")wait(1)plugin command("ExBrowser.dll", "ExBrowser Change Checkbox", "x://input[contains(@id,\"isEnabled\")]", "Checked")wait(3)plugin command("ExBrowser.dll", "ExBrowser Close visible Browser Tab")This is for Pinterest login with using advanced captcha plugin. but it's' still error navigate("https://www.pinterest.com/login/?referrer=home_page","Wait") wait for browser event("Everything Loaded","") wait for element(<email field>,"","Appear") set(#GoogleSiteKey,$scrape attribute(<src=r"https://www.google.com/recaptcha/api2/anchor?.*">,"src"),"Global") set(#GoogleSiteKey,$find regular expression(#GoogleSiteKey,"(?<=https://www.google.com/recaptcha/api2/anchor?.*?=.*?=).*?(?=&.*?=)"),"Global") clear list(%list google key) clear list(%Debug) add list to list(%list google key,$list from text(#GoogleSiteKey,$new line),"Delete","Global") set(#google key,$list item(%list google key,0),"Global") add list to list(%Debug,$plugin function("Advanced Captcha.dll", "$2captcha.com recaptcha v2 invisible", "xxxxxxxxxx", #google key, "https://www.pinterest.com/login/?referrer=home_page", "", "", 120, ""),"Delete","Global") if($comparison($list total(%Debug),">",1)) { then { change attribute(<id="g-recaptcha-response">,"style","width: 250px; height: 40px; border: 1px solid rgb(193, 193, 193); margin: 10px 25px; padding: 0px; resize: none;") change attribute(<id="g-recaptcha-response">,"value",$list item(%Debug,1)) run javascript("run javascript(\"_submitForm();\")") comment("run javascript(\"___grecaptcha_cfg.clients[0].aa.l.callback()\")") } else { } } Edited April 1, 2019 by taufiqkyu Quote Link to post Share on other sites
microsoft 0 Posted April 2, 2019 Report Share Posted April 2, 2019 (edited) You could load your chrome profile with the plugin pre-configured.That's what I do, but this only works if you have 1 API key. See page 51: https://exbrowser.s3.amazonaws.com/Exbrowser-Command-Reference.pdf Edited April 2, 2019 by microsoft Quote Link to post Share on other sites
taufiqkyu 0 Posted April 5, 2019 Author Report Share Posted April 5, 2019 (edited) Thanks. Now it's solved now with chrome profile Edited April 5, 2019 by taufiqkyu 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.