Jump to content
UBot Underground

Next page add to table


Recommended Posts

Hi all, Happy New Year.

 

I am creating a bot that will log into the WarriorForum and go to the online.php section which shows me who is online at the current moment in time. I would like to capture the table of results for each page, including the username, IP and time plus what page they are on.

 

Here's the code I have created for it:

 

ui text box("Username", #username)
ui text box("Password", #password)
ui text box("Starting Page", #page)
define WarriorLogin {
   navigate("http://www.warriorforum.com/online.php", "Wait")
   type text($element offset(<username field>, 1), #username, "Standard")
   type text($element offset(<password field>, 1), #password, "Standard")
   click($element offset(<login button>, 1), "Left Click", "No")
   wait(5)
   navigate("http://www.warriorforum.com/online.php?order=asc&sort=username&pp=200&page={#page}", "Wait")
}
define Scraping table {
   set table cell(&wsotabledata, 0, 1, "")
   loop(10) {
       scrape table(<innertext="01:31 PMiamhelping">, &wsotabledata)
       add item to list(%wsodata, &wsotabledata, "Delete", "Global")
       wait(4)
       increment(#page)
       navigate("http://www.warriorforum.com/online.php?order=asc&sort=username&pp=200&page={#page}", "Wait")
   }
   Log Out()
}
WarriorLogin()

 

 

 

 

 

 

 

Now, I can get it working but a couple of things I am having an issue with are:

 

It will only scrape the info on the first page. I can make it go to the next page but increment page by one then navigate to the new page url. But scraping this page returns nothing. I have played around with wildcards etc but just do not know which attribute to select.

 

Also, I would much rather the bot navigate to the last page rather than me creating a loop. How can I do this?

 

Notive that I have an option to start at a page - select 1 for the start. If you use the Warrior forum simply use your login info in the bot.

 

I hope you can help me out - been wrecking my head getting this sorted.

 

Cheers

Link to post
Share on other sites

Keep in mind john when i was testing that one active users list bot i made for WF, that you cant navigate directly to the home page in ubot. you have to go to another page first then you can click to the home page, or whatever page your wanting.

Link to post
Share on other sites

It might be that it gets disabled in peak hours.

 

Would be better if you watched the online area on the home page, and monitor it to get the desired results.

 

For instance I would over 15,000 active members on WF forums that was verified online over a 1 week period.

 

Theses aren't new sign ups, as it requires them to login and navigate around the site to set online status. They are active members on the forum. and had logged in, and was navigating the site. The bot I built scanned and removed duplicates every 5 minutes over a 7 day period of time.

 

TJ

Link to post
Share on other sites

Good idea TJ but here's the reason for the other way

 

I wanted to trick the IP of the usernames in order to find duplicate ips and multiple usernames, in a bid to help me figure out who's double accounting. I know folks would probably use proxies but this would be a nice way to catch the noobs/chancers and then simply publish a page with the info

Link to post
Share on other sites

Ok, You can give this a try:

 

If it is only for a single page, you can run it as is. If you need to run it in a loop then put the clear list commands inside the loop, but keep the add list to table as column commands outside the loop.

 

Also I changed the nav when I was having trouble viewing the page...you string with the variable is fine (I just forgot to put it back). This code worls for the last page:

 

<title=w"Last Page - *"> (in a click command)

 

John

wf_members.ubot

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