I am very new to Perl and I am looking for conceptual advice on producing a javascript file from several newsfeeds (rss).
The task is as follows:
Feeds are coded in an array in order of preference. I would loop through each feed and look for matches in the headline with keywords I have supplied until say 15 headlines have been found. The output is then printed to a javascript file.
The difficulty I have in thinking this through is how to do the matching of keywords. Do I parse the xml/rss file and use an event handler so it will loop through my keywords for a match whenever it detects a headline item? Then output to js file if less then 15 found so far?
I have looked several modules in CPAN and found it very overwhelming. I looked at the XML::RSS::Aggregate module and it will aggregate x number of headlines from y number of feeds but will not match keywords and does not give priority to feeds listed first.
I am not looking for code examples just tips and maybe modules I should look at.
Thanks
The task is as follows:
Feeds are coded in an array in order of preference. I would loop through each feed and look for matches in the headline with keywords I have supplied until say 15 headlines have been found. The output is then printed to a javascript file.
The difficulty I have in thinking this through is how to do the matching of keywords. Do I parse the xml/rss file and use an event handler so it will loop through my keywords for a match whenever it detects a headline item? Then output to js file if less then 15 found so far?
I have looked several modules in CPAN and found it very overwhelming. I looked at the XML::RSS::Aggregate module and it will aggregate x number of headlines from y number of feeds but will not match keywords and does not give priority to feeds listed first.
I am not looking for code examples just tips and maybe modules I should look at.
Thanks