Jump to content
UBot Underground

Help Create A Simple Scrape Bot


Recommended Posts

I wants to create a bot..which is very simple just involve few steps hope you can help..

 

1. bot will open list of urls from a url.csv file

2. search for a text on page if found will say yes and "yes will be saved to 1.csv file" 

and if not found will type "No" in the same 1.csv in next row..

3 this will go in loop using all urls of url.csv

 

Thats all..

 

But if possible...if we can add yes or no in next column of url.csv file instead of created new csv file.

 

please help..I tried a lot but everytime bot is not able to add yes or no..items in new csv..

 

Thanks in advance.

Link to post
Share on other sites

I wants to create a bot..which is very simple just involve few steps hope you can help..

 

1. bot will open list of urls from a url.csv file

2. search for a text on page if found will say yes and "yes will be saved to 1.csv file" 

and if not found will type "No" in the same 1.csv in next row..

3 this will go in loop using all urls of url.csv

 

Thats all..

 

But if possible...if we can add yes or no in next column of url.csv file instead of created new csv file.

 

please help..I tried a lot but everytime bot is not able to add yes or no..items in new csv..

 

Thanks in advance.

Hello.

 

Please share your code and show us where you struggle exactly.

 

Kindest regards

Dan

Link to post
Share on other sites

I don't know if this help..coz I am new to ubot..

 

ui open file("Get CSV", #CSVfile)
ui text box("keyword number", #picknumber)
set(#row, #picknumber, "Global")
create table from file(#CSVfile, &keywordcsv)
define checkvideo {
    navigate("https://google.com/ncr","Wait")
    wait(5)
    type text(<name="q">, $table cell(&keywordcsv, #row, 0), "Standard")
    wait(5)
    click(<login button>, "Left Click", "No")
    if($search page("youtube.com")) {
        then {
        }
        else {
        }
    }
}
 
I stuck under if command..
 
Now I want if youtube.com found on search page then bot should create a csv file and type yes else no..for all keyword 
and then move to next keyword do the same..
 
please help..
Link to post
Share on other sites

not test.

ui open file("Get CSV",#CSVfile)
ui text box("keyword number",#picknumber)
set(#row,#picknumber,"Global")
create table from file(#CSVfile,&keywordcsv)
save to file("{$special folder("Desktop")}\\report.csv","Keyword,Found")
define checkvideo {
    navigate("https://google.com/ncr","Wait")
    wait(5)
    set(#keyword,$table cell(&keywordcsv,#row,0),"Global")
    type text(<name="q">,#keyword,"Standard")
    wait(5)
    click(<login button>,"Left Click","No")
    if($search page("youtube.com")) {
        then {
            append to file("{$special folder("Desktop")}\\report.csv","{$new line}{#keyword},yes","End")
        }
        else {
            append to file("{$special folder("Desktop")}\\report.csv","{$new line}{#keyword},no","End")
        }
    }
}

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