Jump to content
UBot Underground

Way to scrape just a part of a url?


Recommended Posts

There are a bunch of links on a website I am trying to scrape but I want to get rid of the last part of the url. For example this one of the urls: 

 

http://website.com/2134567/thisisatest.avi

 

 

I want to get rid of the"/thisisatest.avi" and all the urls have different titles. Is there any way to delete the ending part so I would end up scraping just

 

http://website.com/2134567

?

 

 

Thanks!

 

EDIT: Just figured out how to do it using the regular scrape page function. I've been spoiled using scrape attribute I forgot all about using regular scrape page haha :D

Link to post
Share on other sites

If there is always a . there like .avi then you can use the file below, if there is not a dot at the end change the regex to this: 

 

\/\w+$

 

http://www.mediafire.com/?rco893i66p0kcf6

 

For some reason the forum wont let me upload the ubot file..

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