[REBOL] A novice question
From: vkmodgil::yahoo::com at: 19-Aug-2000 15:27
I was trying to modify the web parser code from the
User's Guide. The original code is like this:
tag-parser: make object! [
tags: make block! 100
text: make string! 8000
html-code: [
copy tag ["<" thru ">"] (append tags tag) |
copy txt to "<" (append text txt)
]
parse-tags: func [site[url!]] [
clear tags clear text
parse read site [to "<" some html-code]
print text
]
]
My aim is to pick up listings from the web site to
pick up jobs which begin with "keyword_one" and end
with "keyword_two", but I would still like to get rid
of the tags. So I tried this
html-code: [
copy tag ["<" thru "keyword1"] (append tags tag) |
copy txt to "keyword2" (append text txt)
]
etc.. and then use tag-parser/parse-tags modified-url.
But this now hangs.
Any help welcomed by this novice.
-Vik