Jump to content
UBot Underground

How would I scrape the outerhtml of a google result to get only the search result rank?


Recommended Posts

Here is an example of what I am trying to scrape:

 

<a href="http://weblist.me/rosicki-rosicki-and-associates" class="l" onmousedown="return rwt(this,'','','','11','AFQjCNFAL7WEMB5grBxW3KjMa0BKq29oog','','0CC8QFjAAOAo','','',event)"><em>Rosicki Rosicki and Associates</em></a>

 

In this case I would need 11.  Everything I've tried however returns all numbers in the innertext.  As always thanks in advance.

Link to post
Share on other sites

did a quick test and i came up with this

 

add list to list(%position, $find regular expression($scrape attribute(<outerhtml=w"<h3 class=\"r\">*onmousedown=\"return rwt*">, "innerhtml"), "(?<=onmousedown=\"return\\ rwt\\(this,\'\',\'\',\'\',\').*?(?=\',\')"), "Delete", "Global")
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...