Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Aggregate rss to javascript advice

Status
Not open for further replies.

ChrisMN

Technical User
Jul 7, 2002
2
US
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top