Jump to content
UBot Underground

Scraping Only The Number Out of A URL?


Recommended Posts

I have my bot set to scrape the "fullhref". And it is working great, but I like to have my bot's run off of the mobile version of a website.

Specifically, I need it to get the number out of a url.

 

http://www.roblox.com/User.aspx?ID=43770005

 

In this case, I would like to get the "43770005". Do you have any recommendations on how to do this? 

 

Link to post
Share on other sites

You will probably have to use the Find Regular Expressions Node. Try pasting this in:

 

(?<=http://www.roblox.com/User.aspx\?ID=).*$

 

It will extract the number from the scraped URL.

 

This will only work for scraping URLs with this format though:

 

http://www.roblox.com/User.aspx?ID=

 

That looks like a very cool site by the way...

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