Rebol Talk Forum  |  Getting Started  |  Newbie Help  |  Topic: parse problem2
Pages: [1] Print
Author Topic: parse problem2  (Read 228 times)
parse
Guest


Email
parse problem2
« on: August 10, 2005, 09:13:13 AM »

I want to parse the news section of http://www.yahoo.com/

I thought it would be easy but it doesn't extract the links and descriptions as expected Sad help thanks

links: copy []
text: copy []
page: read http://www.yahoo.com

html-code: [    
    {<a href=} copy link to {">} (append links link)  thru {">}
    copy txt to {</a>} (append text txt) thru {</a><br>&#149;&nbsp;}
    |
    to "Markets"
]

parse page [to {In the News} to {<a href=} html-code to {market}]
Logged
Guest
Guest


Email
parse problem2
« Reply #1 on: August 12, 2005, 03:49:55 AM »

Nobody knows ? Is it too obvious or too hard ?

Logged
Gabriele
Full Member
***
Offline Offline

Posts: 182


View Profile WWW
parse problem2
« Reply #2 on: August 12, 2005, 04:51:36 AM »

Hints: parse/all and, if you want to get more than one link, you'll need an iteration, like some.

Also, there's no reason for thru in to "something" thru "something", you can just use to "something" "something" or to "something" 9 skip where 9 is the length of "something".
Logged
Pages: [1] Print 
Rebol Talk Forum  |  Getting Started  |  Newbie Help  |  Topic: parse problem2
Jump to:  

  
Quick Search...

Advanced search
  
Welcome, Guest. Please login or register.
Did you miss your activation email?
November 20, 2008, 09:53:19 PM
Username: Password: Session Length:
  

News: 01-09-08

Alpha version of REBOL 3 has been released!


  
2287 Posts in 593 Topics by 3727 Members
Latest Member: Maximinioles

  Rebol Talk Forum | Powered by SMF 1.0.9.
© 2001-2005, Lewis Media. All Rights Reserved.

RT design by Defiant Pc