Jump to content
UBot Underground

Thinking outside of the Box


Recommended Posts

In another thread a botter had an interesting goal. To count the number of keywords that appeared on the page. I thought, "This was too easy". Then when I attempted my original idea it quickly got blown out of the water as not being a viable solution.

 

So I sat there thinking. The it hit me.

 

Use the "$page scrape" node.

 

If you look at my code you will see an unorthodox use of the "$page scrape" node. In essence, I am using a ui textbox to bring in some text.

 

The Left side of the node is checking for my keyword (or even a keyword phrase). The Right side is Null. This means whatever is in between the two will be scraped which will be nothing.

 

The result of the Lists total will be the total number of times the keyword phrase appears on the page. So even if you save the list to a file you will see nothing in that file but blank lines.

 

So when it comes to solving a problem never say impossible. There's always a way to find a solution. Sometimes it may not be where you thought it should be. At least I can say that for this one and it becomes a new trick to add to my UBot Toolbelt.

kwd-counter.ubot

  • Like 4
Link to post
Share on other sites
  • 4 weeks later...
  • 2 months later...
  • 4 weeks later...

Sometimes it just like puzzle... i found out "find regular expression" command is a killer feature to scrape.. too bad it's a Pro Version... hopefully UBOT team include this command in Standard Version as its really a core requirement to scrape

Link to post
Share on other sites
  • 2 months later...
  • 4 weeks later...

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