dahid84 5 Posted October 9, 2013 Report Share Posted October 9, 2013 (edited) Hi, can you help me ? Im created bot... (easy) but im have problem how to save allready created email ;/ My bot look like that navigate("https://profil.wp.pl/rejestracja.html", "Wait")clear cookiestype text(<first name field>, "{$account data("First Name")}123", "Standard")type text(<last name field>, $account data("Last Name"), "Standard")click(<id="plec-kobieta">, "Left Click", "No")type text($element offset(<birthday field>, 0), $account data("Birth Day"), "Standard")type text($element offset(<birthday field>, 1), $account data("Birth Month"), "Standard")type text($element offset(<birthday field>, 2), $account data("Birth Year"), "Standard")click(<id="darmowa">, "Left Click", "No")type text($element offset(<password field>, 0), "asdzxc00", "Standard")type text($element offset(<password field>, 1), "asdzxc00", "Standard")type text(<name="login">, "{$account data("Username")}{$rand(1, 199)}", "Standard")change dropdown(<name="wielkoscMiejscowosci">, "Random - Skip First Choice")change dropdown(<name="wyksztalcenie">, "Random - Skip First Choice")change dropdown(<name="zawod">, "Random - Skip First Choice")change checkbox(<id="zgodaAll">, "Checked")(captcha) - im now is missing http://p0kerfree.blox.pl/resource/sccren.jpg Edited October 9, 2013 by dahid84 Quote Link to post Share on other sites
dahid84 5 Posted October 9, 2013 Author Report Share Posted October 9, 2013 (edited) im try this way to save email save to file("C:\\Users\\oem\\Desktop\\odblokowywanie\\ko.txt", $scrape attribute(<class="email">, "innertext")) but file savein this format.... e-mail: boorishnational97@wp.pl im need only email...code look like this <div class="email"><span>e-mail:</span> boorishnational124@wp.pl</div> any idea ? Edited October 9, 2013 by dahid84 Quote Link to post Share on other sites
Aymen 385 Posted October 9, 2013 Report Share Posted October 9, 2013 you don't have to scrape anything just save the username you are generating to a set command set(#username,{$account data("Username")}{$rand(1, 199)}, "Global")then use this instead type text(<name="login">, #username, "Standard") and finally to save : save to file("C:\\Users\\oem\\Desktop\\odblokowywanie\\ko.txt", "{#username}@wp.pl", "innertext")) PS: i recommend you use append to file command instead if you are saving one email at a time so you don't overwrite your previous created email Quote Link to post Share on other sites
Code Docta (Nick C.) 638 Posted October 9, 2013 Report Share Posted October 9, 2013 This is one way to do it. set(#email, $replace($scrape attribute(<class="email">, "innertext"), "e-mail: ", $nothing), "Global")save to file("C:\\Users\\oem\\Desktop\\odblokowywanie\\ko.txt", #email) Not sure what you're doing exactly but I may do it in a different way depending on what you are doing. If that is the email you have just created when you just made the account there are easier ways to do this. If you're scraping multiple emails I would add them to a list then save. This way you won't have a lot of files. clear list(%emails)set(#email, $replace($scrape attribute(<class="email">, "innertext"), "e-mail: ", $nothing), "Global")add item to list(%emails, #email, "Delete", "Global")save to file("C:\\Users\\oem\\Desktop\\odblokowywanie\\ko.txt", %emails) hope that helps, TC Quote Link to post Share on other sites
dahid84 5 Posted October 10, 2013 Author Report Share Posted October 10, 2013 This is one way to do it. set(#email, $replace($scrape attribute(<class="email">, "innertext"), "e-mail: ", $nothing), "Global")save to file("C:\\Users\\oem\\Desktop\\odblokowywanie\\ko.txt", #email) Not sure what you're doing exactly but I may do it in a different way depending on what you are doing. If that is the email you have just created when you just made the account there are easier ways to do this. If you're scraping multiple emails I would add them to a list then save. This way you won't have a lot of files. clear list(%emails)set(#email, $replace($scrape attribute(<class="email">, "innertext"), "e-mail: ", $nothing), "Global")add item to list(%emails, #email, "Delete", "Global")save to file("C:\\Users\\oem\\Desktop\\odblokowywanie\\ko.txt", %emails) hope that helps, TCcool is working thx a lot Aymen I'm can't to this like you write... but thx 4 help Quote Link to post Share on other sites
dahid84 5 Posted October 10, 2013 Author Report Share Posted October 10, 2013 (edited) good night Edited October 10, 2013 by dahid84 Quote Link to post Share on other sites
dahid84 5 Posted October 10, 2013 Author Report Share Posted October 10, 2013 or can someone tell me why my bot to store data. txt file (for example, loop 5 of the Act) xxx, xxx zzz, zzz yyy, yyy qqq, qqq vvv, vvvv (All is correct) but once again start up the bot, delete all previously saved files and saves from the begin 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.