Jump to content
UBot Underground

How do I scrape pages for their links


Recommended Posts

"scrape table" command will only work if you are trying to scrape data from HTML table, which looks like "<table>...</table>".

 

I think you don't have HTML table there, that's why you should use "$scrape attribute" and add all URLs into the list first, then add list to a table.

Link to post
Share on other sites

"scrape table" command will only work if you are trying to scrape data from HTML table, which looks like "<table>...</table>".

 

I think you don't have HTML table there, that's why you should use "$scrape attribute" and add all URLs into the list first, then add list to a table.

 

 

 

Yea I had a feeling but wasnt sure.

 

So there are about over 150 links there, I have to add all of them manually to the list, then to a table

 

Because what is $scrape attribute for exactly ?

Edited by alabamafreddie
Link to post
Share on other sites

you have a few options to get scrape the urls, 

 

you can use regex, which removes all the extra crap and leaves you with the urls needed.

 

you can also scrape the urls into one variable, and then split the variable with the $ list from text function,

and then screen out each list item into a final list.

 

if the urls from the page follow a predetermined format, you can use a loop while to scrape each of the urls, one at a time, and then add them to a list.

Link to post
Share on other sites

$scrape attribute will return all of the URLs (150), you just need to choose the right element ("element to scrape").

Right and how do I choose that element...I know firebug is recommended as an element inspector.

 

But in Ubot how do I manually type to use a certain element.

 

I have found the currect element and its #div_bodytext.

 

So what do I put $scrape attribute in ??

Link to post
Share on other sites

It's hard to tell what you should use without seeing seeing the HTML code...

 

Also, have you checked the tutorials yet? ...if not I strongly suggest you go through all.

 

Here is the part of video tutorial that should answer your question:

http://www.youtube.com/watch?v=e09XGjRBpTM&feature=player_detailpage#t=629
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...