> 3. I took the sample trial.txt input file that comes with
> the Wintrial version and both added to and replaced the
> default yahootopstories AP filter that's in there with this
> Sports filter I retrieved from the Readme file:
> <!--newsclipper
> <input name=yahootopstories source=sports>
> <filter name=map filter=hash2string
> format='%{url}: %{headline}'>>
> <filter name=limit number=10>
> <output name=array numcols=1>
> -->
> Both times, this gave me back ten results that looked like
> this format, for example:
> http://dailynews.yahoo.com/h/ap/19990830/sp/bbo_umpires_suit_4.html:
> Umpires Sue Baseball Again (on one line, no linking, all in
> one column). However, doing this:
> <!--newsclipper
> <input name=yahootopstories source=sports>
> -->
> Gave me ten perfect results split into two columns, all
> hyperlinked fine and ready to go. Where's the error in the
> code? I hacked around with it but couldn't find it; duh.
The error is in:
> <filter name=map filter=hash2string
> format='%{url}: %{headline}'>>
This free-formating does exactly what it says. Put the url, followed
by ':' and the the headding. If you want to get the same as the
default output you should say:
> <filter name=map filter=hash2string
format='<a href="%{url}">%{headline}</a>'>>
hash2string basically allows you to generate any type of the result by
doing basic substitution. To see what elements you can use for
substitution check each handler's individual documentation.
Hope this helps.
-Vadim
>
> Well, if you have any suggestions, thank you.
>
> Chuck Heffner
> [EMAIL PROTECTED]
>
> -
> 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.
>
-
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.