zenos 13 Posted April 22, 2016 Report Share Posted April 22, 2016 (edited) Hi guys, like you know, or not, I have made a bot for twitter... But today, big issue, I can see the login page, and the twitter home page, I can field the login and pass, click on login button, but just after that I have a blank page, wtih this url https://twitter.com/sessions, and so, impossible to be connected. I tried ubot4, not ubot 5 because too many problems with my big bot and all my plugins inside. I've tried with lot of user agents, chrome, ff, mobile... same error. All was working great since months, and today baaamm.... Many customers are impacted. Do you have same issue if you are working on twitter ? Edited April 22, 2016 by LoWrIdErTJ - BotGuru Quote Link to post Share on other sites
LoWrIdErTJ - BotGuru 904 Posted April 22, 2016 Report Share Posted April 22, 2016 removed duplicate post for you. try mobile version of twitter?and theres always using exbrowser, but would require an overhaul on all browser related items. this would ned up using your installed browser on your pc this way. Quote Link to post Share on other sites
zenos 13 Posted April 22, 2016 Author Report Share Posted April 22, 2016 removed duplicate post for you. try mobile version of twitter? and theres always using exbrowser, but would require an overhaul on all browser related items. this would ned up using your installed browser on your pc this way.Thanks, yes I've tried mobile version, and I already have exbrowser, I thnk I'm gonna use it for all my tools in my bot, but a lot of work... Quote Link to post Share on other sites
cob007 19 Posted April 22, 2016 Report Share Posted April 22, 2016 hI TJ, So can we use exbrowser to make autotweets on twitter? Because even using http plugin as below(purchased from a vendor) doesnt seem to work and doesn't auto-post anything on twitter.... define RANKINCREASER_TWITTER { plugin command("HTTP post.dll", "http max redirects", 10) plugin command("HTTP post.dll", "http auto redirect", "Yes") plugin command("HTTP post.dll", "http cookies folder", "C:\\cookies") set(#rankincreaser_twitter_accounts_listpos,0,"Global") set(#rankincreaser_current_action,"Starting Twitter Module","Global") loop($list total(%rankincreaser_twitter_accounts_list)) { set(#rankincreaser_videos_kw_listpos,0,"Global") set(#twitter_home_html,$plugin function("HTTP post.dll", "$http get", "http://twitter.com", "", "", #rankincreaser_proxy, ""),"Global") load html(#twitter_home_html) set(#twitter_auth_token,$plugin function("File Management.dll", "$Find Regex First", #twitter_home_html, "(?<=<input type=\"hidden\" value=\").*?(?=\" name=\"auth)"),"Global") set(#twitter_user,$replace($replace($find regular expression($list item(%rankincreaser_twitter_accounts_list,#rankincreaser_twitter_accounts_listpos),".*?(?=:)"),"",""),"",""),"Global") set(#twitter_pass,$find regular expression($list item(%rankincreaser_twitter_accounts_list,#rankincreaser_twitter_accounts_listpos),"(?<=.*"),"Global") set(#rankincreaser_current_action,"Logging {#twitter_user}","Global") set(#twitter_login_post,$plugin function("HTTP post.dll", "$http post", "https://twitter.com/sessions", "session%5Busername_or_email%5D={$plugin function("SocketCommands.dll", "$url encode", #twitter_user)}&session%5Bpassword%5D={$plugin function("SocketCommands.dll", "$url encode", #twitter_pass)}&return_to_ssl=true&scribe_log=&redirect_after_login=%2F&authenticity_token={#twitter_auth_token}", "", "", #rankincreaser_proxy, ""),"Global") load html(#twitter_login_post) increment(#rankincreaser_twitter_accounts_listpos) if($comparison($find regular expression(#twitter_login_post,"login\\\\/error"),"=","login\\/error")) { then { set(#rankincreaser_current_action,"Login error({#twitter_user})","Global") } else { RANKINCREASER_WAIT() loop($list total(%rankincreaser_videos_kws_list)) { set(#rankincreaser_current_action,"Sharing({#rankincreaser_videos_kw_listpos})","Global") set(#twitter_home_html,$plugin function("HTTP post.dll", "$http get", "http://twitter.com", "", "", #rankincreaser_proxy, ""),"Global") set(#twitter_auth_token,$find regular expression(#twitter_home_html,"(?<=<input type=\"hidden\" value=\").*?(?=\" name=\"auth)"),"Global") set(#twitter_status_text,$replace regular expression($list item(%rankincreaser_videos_kws_list,#rankincreaser_videos_kw_listpos),"(?<=.*v.*):"," "),"Global") set(#twitter_post_status_HTML,$plugin function("HTTP post.dll", "$http post", "https://twitter.com/i/tweet/create", "authenticity_token={#twitter_auth_token}&place_id=&status={$plugin function("HTTP post.dll", "$url encode", #twitter_status_text)}&tagged_users=", "", "", #rankincreaser_proxy, ""),"Global") load html(#twitter_post_status_HTML) increment(#rankincreaser_videos_kw_listpos) wait(15) } RANKINCREASER_CHANGE_PROXY() } } } Quote Link to post Share on other sites
LoWrIdErTJ - BotGuru 904 Posted April 22, 2016 Report Share Posted April 22, 2016 it should its using the real browser on your pc to do so. Quote Link to post Share on other sites
zenos 13 Posted April 23, 2016 Author Report Share Posted April 23, 2016 If someone would just test this for me it will be great, if you can connect or not, please tell me ui text box("login twitter", #login) ui text box("pass twitter", #pass) navigate("https://twitter.com", "Wait") wait for browser event("DOM Ready", "") type text($element offset(<email field>, 1), #login, "Standard") type text($element offset(<password field>, 1), #pass, "Standard") click($element offset(<login button>, 1), "Left Click", "No") wait(1) wait for browser event("DOM Ready", "") Quote Link to post Share on other sites
LoWrIdErTJ - BotGuru 904 Posted April 23, 2016 Report Share Posted April 23, 2016 I tried it within ExBrowser and no problems. Video:http://screencast.com/t/YqSoGE82Nc0k Example code: ui text box("login twitter",#login) ui text box("pass twitter",#pass) plugin command("ExBrowser.dll", "ExBrowser CleanUp") plugin command("ExBrowser.dll", "ExBrowser Delete All Cookies") plugin command("ExBrowser.dll", "ExBrowser Launcher", "Chrome", "", "") plugin command("ExBrowser.dll", "ExBrowser Delete All Cookies") plugin command("ExBrowser.dll", "ExBrowser Navigate", "https://twitter.com") wait(2) plugin command("ExBrowser.dll", "ExBrowser Click", "x://*[@id=\"doc\"]/div[1]/div/div[1]/div[2]/button") plugin command("ExBrowser.dll", "ExBrowser Wait For Element", "x://*[@name=\"session[username_or_email]\"]", "Appear", 20) wait(2) plugin command("ExBrowser.dll", "ExBrowser Type Text (Human Delay)", "x://*[@name=\"session[username_or_email]\"]", #login, 100, 150) plugin command("ExBrowser.dll", "ExBrowser Type Text (Human Delay)", "x://*[@name=\"session[password]\"]", #pass, 100, 150) plugin command("ExBrowser.dll", "ExBrowser Send Special Key", "x://*[@name=\"session[password]\"]", "Enter") wait(1) alert("Loaded") 1 Quote Link to post Share on other sites
zenos 13 Posted April 23, 2016 Author Report Share Posted April 23, 2016 (edited) I tried it within ExBrowser and no problems. Video:http://screencast.com/t/YqSoGE82Nc0k Example code: ui text box("login twitter",#login) ui text box("pass twitter",#pass) plugin command("ExBrowser.dll", "ExBrowser CleanUp") plugin command("ExBrowser.dll", "ExBrowser Delete All Cookies") plugin command("ExBrowser.dll", "ExBrowser Launcher", "Chrome", "", "") plugin command("ExBrowser.dll", "ExBrowser Delete All Cookies") plugin command("ExBrowser.dll", "ExBrowser Navigate", "https://twitter.com") wait(2) plugin command("ExBrowser.dll", "ExBrowser Click", "x://*[@id=\"doc\"]/div[1]/div/div[1]/div[2]/button") plugin command("ExBrowser.dll", "ExBrowser Wait For Element", "x://*[@name=\"session[username_or_email]\"]", "Appear", 20) wait(2) plugin command("ExBrowser.dll", "ExBrowser Type Text (Human Delay)", "x://*[@name=\"session[username_or_email]\"]", #login, 100, 150) plugin command("ExBrowser.dll", "ExBrowser Type Text (Human Delay)", "x://*[@name=\"session[password]\"]", #pass, 100, 150) plugin command("ExBrowser.dll", "ExBrowser Send Special Key", "x://*[@name=\"session[password]\"]", "Enter") wait(1) alert("Loaded") Yes I know that this is working good with exbrowser, thank you, but not my problem, my problem is with the ubot browser. My bot is very big and it will take me month to update all the code with exbrowser plugin... What is strange is that on some computer my bot is working, some other not... Yesterday all my customers were good, I have made no update and today there is this issue, not for everyone... makes me crazy Edited April 23, 2016 by zenos Quote Link to post Share on other sites
LoWrIdErTJ - BotGuru 904 Posted April 24, 2016 Report Share Posted April 24, 2016 Yes I know that this is working good with exbrowser, thank you, but not my problem, my problem is with the ubot browser. My bot is very big and it will take me month to update all the code with exbrowser plugin... What is strange is that on some computer my bot is working, some other not... Yesterday all my customers were good, I have made no update and today there is this issue, not for everyone... makes me crazyI understand. 1 thing to keep in mind when coding. sometimes its best to take a change of coarse now, rather than later. later will take you even longer to change as there will be even more code.not telling you that you have to. but if it takes care of your issues and for the long haul going to be a better solution. sounds like changing over might be best for the long haul. Quote Link to post Share on other sites
BoosterBots 23 Posted April 25, 2016 Report Share Posted April 25, 2016 My twitter logins are working fine using v4. Have not noticed any issues with logging in. Quote Link to post Share on other sites
luis carlos 94 Posted April 25, 2016 Report Share Posted April 25, 2016 ui text box("login twitter", #login)ui text box("pass twitter", #pass)navigate("https://twitter.com/login?lang=en", "Wait")wait for browser event("DOM Ready", "")type text($element offset(<email field>, 1), #login, "Standard")type text($element offset(<password field>, 1), #pass, "Standard")click($element offset(<login button>, 1), "Left Click", "No")wait(1)wait for browser event("DOM Ready", "") Login with no problem, just changed navigate("https://twitter.com/login?lang=en", "Wait") Quote Link to post Share on other sites
zenos 13 Posted April 25, 2016 Author Report Share Posted April 25, 2016 Thanks guys, it seems Twitter have made some changes. Quote Link to post Share on other sites
luis carlos 94 Posted April 25, 2016 Report Share Posted April 25, 2016 Yes, they did. But is it working now for you? Are you still using ubot browser? Thanks guys, it seems Twitter have made some changes. Quote Link to post Share on other sites
zenos 13 Posted April 26, 2016 Author Report Share Posted April 26, 2016 impossible for me to use ubot browser, the only things that work is going to mobile.twitter.com , wait 30 seconds (yes 30) and connect.... If I wait less it doens't connect.It could be less, but for low internet connections like me, 30 is the right solution... This is not really good, so I'm starting to make all my bot working with exbrowser. Yes, they did. But is it working now for you? Are you still using ubot browser? Quote Link to post Share on other sites
cob007 19 Posted July 7, 2016 Report Share Posted July 7, 2016 Hi TJ, I followed your video and also was able to get the exbrowser to post tweet with CHROME as well but as soon as I switched to phantom JS it is not posting tweet. You can see my code below. I even changed the user agent to mozilla firefox and it still didnt post the tweet with phantom JS. What could be the issue? ui text box("Username",#Username)ui text box("Password",#Password)plugin command("ExBrowser.dll", "ExBrowser CleanUp")plugin command("ExBrowser.dll", "ExBrowser Launcher", "PhantomJS", "", $plugin function("ExBrowser.dll", "$ExBrowser Set User Agent", "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.36"))plugin command("ExBrowser.dll", "ExBrowser Delete All Cookies")plugin command("ExBrowser.dll", "ExBrowser Navigate", "https://twitter.com")wait(2)plugin command("ExBrowser.dll", "ExBrowser Click", "x://*[@id=\"doc\"]/div[1]/div/div[1]/div[2]/a[3]")plugin command("ExBrowser.dll", "ExBrowser Wait For Element", "x://input[@name=\"session[username_or_email]\"]", "Appear", 20)wait(2)plugin command("ExBrowser.dll", "ExBrowser Type Text (Human Delay)", "x://input[@name=\"session[username_or_email]\"]", #Username, 100, 150)plugin command("ExBrowser.dll", "ExBrowser Type Text (Human Delay)", "x://input[@name=\"session[password]\"]", #Password, 100, 150)plugin command("ExBrowser.dll", "ExBrowser Send Special Key", "x://input[@name=\"session[password]\"]", "Enter")if($plugin function("ExBrowser.dll", "$ExBrowser Element Exist", "x://button[@class=\"submit btn primary-btn\"]")) { then { alert("try again!") plugin command("ExBrowser.dll", "ExBrowser Close") } else { wait(1) plugin command("ExBrowser.dll", "ExBrowser Wait For Element", "x://*[@id=\"global-new-tweet-button\"]", "Appear", 20) plugin command("ExBrowser.dll", "ExBrowser Click", "x://*[@id=\"global-new-tweet-button\"]") plugin command("ExBrowser.dll", "ExBrowser Wait For Element", "x://*[@id=\"tweet-box-global\"]", "Appear", 20) plugin command("ExBrowser.dll", "ExBrowser Type Text (Human Delay)", "x://*[@id=\"tweet-box-global\"]", #hello, 100, 150) plugin command("ExBrowser.dll", "ExBrowser Click", "x://button[@class=\"btn primary-btn tweet-action tweet-btn js-tweet-btn\"]") }}ui text box("hellp",#hello) 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.