Jump to content
UBot Underground

Working With Google Alerts-Did I miss something?


Recommended Posts

Hi guys,

 

I am pulling out my copy of Ubot again and I'm trying to find the information I need.

 

Basically I know what I want to do, but I am stopped at these things:

 

1. Creating an input box for keywords I want to use for alerts

 

2. Looping so it goes through and adds every keyword I place in the box

(I guess I'll need to give some kind of variable for how many keywords

I am using or have a set amount. I don't know)

 

I believe that's it.

 

I already have the steps I need to add one alert. Now I just need Ubot to do

it for every keyword I place in a box somewhere.

 

I'm new, but I know I can pick this up very quickly. I just need direction on

how to accomplish this or even which tutorials explain it.

 

Thanks for your help,

 

James

Link to post
Share on other sites

Hi,

 

I see you can not download files. This forum topic http://www.ubotstudio.com/forum/index.php?/topic/7731-getting-errors-posting/ has what you need to do to have the limits lifted.

 

This Code sample has a keyword input box:

ui block text("list", #keywordlist)
clear list(%keywords)
add list to list(%keywords, $list from text(#keywordlist, $new line), "Delete", "Global")
if($exists(<id="kd-appswitcher">)) {
   then {
   }
   else {
       navigate("http://www.google.com/alerts", "Wait")
   }
}
loop($list total(%keywords)) {
   if($comparison($list position(%keywords), "<", $list total(%keywords))) {
       then {
           change attribute(<name="q">, "value", $nothing)
           type text(<name="q">, $next list item(%keywords), "Standard")
           wait(5)
       }
       else {
       }
   }
}

sample-google-alert-001.ubot

 

This Code sample can read keywords from file:

ui open file("KW file", #keywordlist)
clear list(%keywords)
add list to list(%keywords, $list from text($read file(#keywordlist), $new line), "Delete", "Global")
if($exists(<id="kd-appswitcher">)) {
   then {
   }
   else {
       navigate("http://www.google.com/alerts", "Wait")
   }
}
loop($list total(%keywords)) {
   if($comparison($list position(%keywords), "<", $list total(%keywords))) {
       then {
           change attribute(<name="q">, "value", $nothing)
           type text(<name="q">, $next list item(%keywords), "Standard")
           wait(5)
       }
       else {
       }
   }
}

sample-google-alert-002.ubot

 

Kevin

Link to post
Share on other sites

Hi Kevin,

 

Thank you so much for that. I'm going to go and test them out

now.

 

James

 

Hi,

 

I see you can not download files. This forum topic http://www.ubotstudio.com/forum/index.php?/topic/7731-getting-errors-posting/ has what you need to do to have the limits lifted.

 

This Code sample has a keyword input box:

ui block text("list", #keywordlist)
clear list(%keywords)
add list to list(%keywords, $list from text(#keywordlist, $new line), "Delete", "Global")
if($exists(<id="kd-appswitcher">)) {
   then {
   }
   else {
       navigate("http://www.google.com/alerts", "Wait")
   }
}
loop($list total(%keywords)) {
   if($comparison($list position(%keywords), "<", $list total(%keywords))) {
       then {
           change attribute(<name="q">, "value", $nothing)
           type text(<name="q">, $next list item(%keywords), "Standard")
           wait(5)
       }
       else {
       }
   }
}

sample-google-alert-001.ubot

 

This Code sample can read keywords from file:

ui open file("KW file", #keywordlist)
clear list(%keywords)
add list to list(%keywords, $list from text($read file(#keywordlist), $new line), "Delete", "Global")
if($exists(<id="kd-appswitcher">)) {
   then {
   }
   else {
       navigate("http://www.google.com/alerts", "Wait")
   }
}
loop($list total(%keywords)) {
   if($comparison($list position(%keywords), "<", $list total(%keywords))) {
       then {
           change attribute(<name="q">, "value", $nothing)
           type text(<name="q">, $next list item(%keywords), "Standard")
           wait(5)
       }
       else {
       }
   }
}

sample-google-alert-002.ubot

 

Kevin

Link to post
Share on other sites

Ok, so I took the file you gave and now it's sort of working. ;-)

 

What am I doing wrong here? I'm trying to get it to go through

the process of adding the alert and navigating back and go through

certain steps again when adding the alert.

 

Also I had set the bot up to login first, but I just put the type

command instead of adding a box for password and email.

 

Thank you for your time and let me know your thoughts.

 

James

 

 

 

Hi Kevin,

 

Thank you so much for that. I'm going to go and test them out

now.

 

James

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