Results 1 to 3 of 3
Jan 16, 2005, 20:33 #1
Challenging task > How to do that
I have different sources of rss feed. I want to use it but to filter first and randomly display on my site based on some rules and criteria.
For eg :-
I have 30 links for rss feed and all will get points based on the following factor :
Points based on Words
- If particular news item contains word "stock" will get 1 point.
- If it contains word "new york" will get 2 points. etc
- Those items which are more newer get additional 1 point.
- Those items belongs to xyz.com gets additional 1 point.
News Item will display according to thier points. Those which have highest points display first others will follow.
Any idea, how to do that. Anyone have developed that kind of script. I need that script in PHP.
Jan 16, 2005, 20:37 #2
- Join Date
- Nov 2000
- Hong Kong
- 0 Post(s)
- 0 Thread(s)
Show us any attempted code for reading / parsing the RSS feed and we'll try help you out with any problems.
Firstly you need to read the RSS and parse into a nice format, so that you can do teh further point parsing.
Then simply, just regular expression matching to check if words exist, and assign points. Also, if you have 30 feeds, and you get 1 point for for being newer, does that mean only 1 feed gets that 1 point, or the newest feed with get 30, then second newest gets 29, etc.?
Jan 16, 2005, 21:20 #3
I am currently using magpie rss script to display only 1 feed.