Posted By

reboltutorial on 03/02/10


Tagged

parse html


Versions (?)

Extract all href links from an HTML WebPage


 / Published in: CSS
 

URL: http://reboltutorial.com/blog/how-to-parse-an-html-web-page-to-extract-all-zip-exe-or-targz-links-without-using-regex/

  1. html-content: read http://www.rebol.com/view-platforms.html
  2. html-block: load/markup html-content
  3. parse html-block [
  4. some [set tag tag! (
  5. if url: find/tail tag "href=" [
  6. print url
  7. ]
  8. )
  9. | string!
  10. ]
  11. ]

Report this snippet  

You need to login to post a comment.