Jump to content
UBot Underground

How to save file (noob question)


Recommended Posts

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 cookies
type 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 by dahid84
Link to post
Share on other sites

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 by dahid84
Link to post
Share on other sites

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

Link to post
Share on other sites

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

Link to post
Share on other sites

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

cool is working :D thx a lot

 

Aymen

 

I'm can't to this like you write... but thx 4 help :)

 

 

 

Link to post
Share on other sites
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

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...