Fxprix 0 Posted June 19, 2018 Report Share Posted June 19, 2018 Hello everyone I'm trying to create a bot to post fake review on trip advisor I already succeed to create this task : Go to the urlClick on the sign up buttonFill in a random email and password (Is it possible each time I launch the task to use different one ?) Because I'm using $accountdata and that's always the same email.The two things I need is to set a TITLE and a DESCRIPTION. My question is is it possible to get content from an external file of 1 title and 1 description each time I launch the bot take another line in the doc. Thanks for your help. FXprix Here is my project file test.ubot Quote Link to post Share on other sites
hare ram 23 Posted June 19, 2018 Report Share Posted June 19, 2018 (edited) when you use account data for email and pass you should use first reset account in starting the loop then it come new email and pass.And yes this is possible to get content from external file for this you have to put those description in csv file and add as a list or table after that in loop you have to increment that table or list data item.File you attach is made in ubot browser in my system this code is not running in this browser if you have exbrowser plugin then i can send those code for account creation example code let me know if you have? Edited June 19, 2018 by hare ram 1 Quote Link to post Share on other sites
hare ram 23 Posted June 19, 2018 Report Share Posted June 19, 2018 ui open file("Data file(CSV)",#data)clear table(&Table)create table from file(#data,&Table)set(#row,0,"Global")loop($table total rows(&Table)) { reset account("Any") navigate("https://www.tripadvisor.fr/","Wait") wait(3) click(<class="ui_button primary fullwidth">,"Left Click","No") click(<class="ui_button primary w100p regTaEmail">,"Left Click","No") type text($element offset(<email field>,0),$account data("Email"),"Standard") type text($element offset(<password field>,0),$account data("Password"),"Standard") click(<onclick="require('ta/registration/Tracking').trackRegSubmitBtnClick('regSignUp', 'core_combined');require('ta/Core/TA.Record').trackEventOnPage('reg_trigger', 'regSignUp_submit_button_click', 'Reg Form | core_combined | ', '427');ta.registration.RegController.submitForm(event, ta.id('regSignUp'), signup_options);">,"Left Click","No") navigate("https://www.tripadvisor.fr/Hotel_Review-g187497-d4154012-Reviews-WOW_Hostel_Barcelona-Barcelona_Catalonia.html","Wait") wait(3) click(<class="ui_button primary war-button">,"Left Click","No") type text(<name="ReviewTitle">,$table cell(&Table,#row,0),"Standard") type text(<name="ReviewText">,$table cell(&Table,#row,0),"Standard") increment(#row)} This code helps you i hope so 1 Quote Link to post Share on other sites
Fxprix 0 Posted June 19, 2018 Author Report Share Posted June 19, 2018 Thanks a lot for this ! that's exactly what I was looking for.I just have to check how I need to format the title and description in the data files. =) As I'm .a beginner ^^ Quote Link to post Share on other sites
hare ram 23 Posted June 27, 2018 Report Share Posted June 27, 2018 Absolutely right Stuna.. 1 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.