Jump to content
UBot Underground

how do you clean up all sorts of html when scraping?


Recommended Posts

When I scrape, sometimes I get random pieces of unwanted html every time. i'm just looking for a solution to rid all these and have regular readable text. Usually I just use the $replace for little things, but that doesn't seem to support the * wildcards.

Link to post
Share on other sites

Can you post an example bot? Many times it is how you are scraping that determines what is being grabbed.

 

Thanks! Thats all you had to say for me to realize that its better to choose scrape by the attribute rather than the regular page scrape!

Link to post
Share on other sites

Also keep in mind that there will be elements that are difficult to pull off a page all at once. In these cases it might be useful to scrape the surrounding HTML(the easier stuff) then use the write-to-browser feature to spit it back out one at a time. This will let you scrape from within generic elements that otherwise would give you tons of false matches.

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