Ptrick125 45 Posted August 24, 2013 Report Share Posted August 24, 2013 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? Quote Link to post Share on other sites
Pizza Pro 11 Posted August 24, 2013 Report Share Posted August 24, 2013 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... Quote Link to post Share on other sites
pftg4 102 Posted August 24, 2013 Report Share Posted August 24, 2013 you can use replace or substring as long as it's the same length or regular expressions Quote Link to post Share on other sites
Pizza Pro 11 Posted August 24, 2013 Report Share Posted August 24, 2013 That's true. I forgot about the replace option... Just replace everything in front of the number with $nothing Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.