Jump to content
UBot Underground

how to use different .txt files for different websites?


Recommended Posts

Hi,

I am looking for a solution for a while and not sure if I am searching for the right topics.

 

What I want:

 

I have a list of 20 Websites where I want the bot to insert 20 different "About me" texts.

 

=> let the bot navigate to website 1 -> paste about_me1.txt; go to Website 2 -> paste about_me2.txt ...

 

 

 

Do you know any tutorial for me to learn how to realize that or have any tip? What what do I have to search?

 

 

Thank you and best regards!

 

 

Link to post
Share on other sites

Is that 20 different "About Me's" per website?

 

If so here is one basic way to do so...

 

clear list(%websites)

clear list(%bios)

set(#websites, "yahoo.com

Google.com

bing.com", "Global")

set(#bios, "I live on mars.

I\'m a Teacher.

I\'m a truck driver.", "Global")

add list to list(%websites, $list from text(#websites, $new line), "Delete", "Global")

add list to list(%bios, $list from text(#bios, $new line), "Delete", "Global")

loop($list total(%websites)) {

set(#next url, $next list item(%websites), "Global")

navigate(#next url, "Wait")

loop($list total(%bios)) {

set(#next bio, $next list item(%bios), "Global")

load html(#next bio)

wait(2)

}

set list position(%bios, 0)

}

 

 

This is free 30 day course.

http://ubottraining.com/category/lui30d/

 

day 9 and 10 "loops"

 

These videos here as well. When you open Ubot this shows in browser after you click on videos.

 

"First steps videos"

http://www.ubotstudio.com/tutorials

 

This is good stuff too.

 

http://wiki.ubotstudio.com/wiki/Main_Page

 

Have any questions? just ask and someone will be glad to help.

 

Hope that helps,

TC

Link to post
Share on other sites

You can try spinning your text.

 

If the OP was making the "About Me" for social networks/profiles, then that would work great, but they may be trying to do a specific text for each website.

 

My idea was a simple table, one column could be the website, and the other column could be the "About Me" text. Then you could loop and use the $increment command to sync up the table. :)

Link to post
Share on other sites

What is in your about me text file?

 

Is it one line of text?

 

I enjoy a long walks on short piers.

 

 

Is it several lines of text and each line you are grabbing for different fields?

 

John Doe

I was born on the fourth of July in the back seat of a 57 Chevy in 1957.

D.O.B 7-4-1957

Some city

some state

 

If you can save in one text or CSV file it would be easier.

 

site a,about me a

site b,about me b

 

or

 

site a,Jon,Doe,Some City,Some State

site b,Jane,DOe,Some other City,Some other State

 

There's many ways to handle many things. Some are easier than others.

 

More advanced:

 

You can "get files" wich would give you a list of files in a folder then loop through those.

You can use Regex to retrieve certain files for a paticular site.

 

There is more but need details.

Help us help you, give as much detail with out giving up the goods. What? no secret? then spill the beans bro!! just giving you hard time... :)

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...