Hi I'm having trouble reading a url. Here is my code
tags: make block! 200
text: make string! 8000
html-code: [
copy tag ["<" thru ">"] (append tags tag) |
copy txt to "<" (append text txt)
]
course: %PES102_02.htm
coursenew: join %proc/ course
page: read course
parse page [to "<" some html-code]
foreach tag tags [
if parse tag ["<A" thru "HREF="
[{"} copy link to {"} | copy link to ">"]
to end
]
[
web-page: link
print webpage
site: read web-page
if find site "Error" [write/append coursenew reduce [newline link]]
]
]
I am basically opening a html file, extracting the links, following the
links to if text on page contains a string and if it does writing it to a
error file of same file name in different folder. The code falls over when
an extracted link is read in ie the line:
site: read web-page
I get
Script error: raed expected source argument of type: file url object block
Thanks
Aneesha