Jump to content
UBot Underground

scraping url help


Recommended Posts

Hi Guys,

Ok I am trying to understand regex but I cannot understand how to use it.

This is what I'm trying to scrape. and show the full url in debugger window.

index.php?view=article&t=668

 

So far this is what I have.

==begin code===

clear list(%urls)
add list to list(%urls, $list from text($scrape attribute(<onclick="window.open('index.php?view=article&t=668=*','_blank'); donte_disabledclass('*');">, "value"), $new line), "Delete", "Global")
}

===End Code===

 

Anyone can point me to a specific tut to scrape urls using regex that would be great. Or help me with this one only.

 

Thanks

Link to post
Share on other sites

I would suggest you learn it, since it will open a lot of doors for you...just start with tutorials you can find online.

 

Else I think this is the code/regex you are looking for:

add list to list(%urls, $list from text($find regular expression($scrape attribute(<onclick="window.open('index.php?view=article&t=668=*','_blank'); donte_disabledclass('*');">, "value"), "(?<=window\\.open\\(\')[^\']+"), $new line), "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...