On Wed, 2 Aug 2000 [EMAIL PROTECTED] wrote:

> I'd appreciate it if anybody can give an insight as to what has changed, so
> I can begin to track what changes I need to make to get these simple (???)
> handlers to work they way they did under V1.17.

Okay, below is a tutorial on how to debug problems like this.

I noticed this message:

News Clipper executed the filter handler "string2hash", but the handler
returned an undefined data element, which is not allowed. Please notify the
handler author of the problem. Filter function for handler string2hash failed.

That means string2hash is failing.

I used the dumpdata output handler and the new -e flag to see what was being
output by postexpressnews:

$ NewsClipper.pl -e postexpressnews,dumpdata

...
    Link (SCALAR): <a href="http://www.postexpresswired.com/postexpress.nsf/24c3
5a000fe637798525691a0076c2cb/c69bf69b35eb250a8525692b0035ef31?OpenDocument">Omer
uah Weeps over Sharia Killings</a>
...

Notice the lower case "a href". This means your string2hash will fail because
you used upper case "A HREF". Use (?i) to make the pattern case insensitive:

<filter name=map filter=string2hash
    regexp='(?i)<A HREF="([^\"]+)">(.*?)</A>'
    labels='url headline'>

After doing this, I found that the string2hash and hash2string handlers had
bugs, so I fixed them and sent the new handlers to the handler database.

So overall, the first problem was in your commands because the website went
from "A HREF" to "a href". The later problems were handler issues, which have
been fixed now.

Add "(?i)", delete string2hash.pm and hash2string.pm, and then rerun News
Clipper and you should be up and running.

Regards,
David

____________________________________________________________________________
David Coppit <[EMAIL PROTECTED]>        President, Spinnaker Software
http://www.newsclipper.com/ -- Snip and ship dynamic content to your website




-
If you would like to unsubscribe from this mailing list send an email to 
[EMAIL PROTECTED] with the body "unsubscribe newsclipperlist 
YOUR_EMAIL_ADDRESS" (without the quotes) or use the form provided at 
http://www.NewsClipper.com/TechSup.htm#MailingList.

Reply via email to