xml - PHP - How to read RSS feeds with limit ( Pagination ) -
i know there lot of ways read rss in php like
$rss = simplexml_load_file('http://rss.cnn.com/rss/edition.rss'); var_dump($rss);
and when searching paginate feeds , limit them offset pagination example found more 1 way
- displaying rss feed php pagination
- http://www.phpexpertsforum.com/display-rss-feeds-with-pagination-using-php-t2173.html
- http://bavotasan.com/2010/display-rss-feed-with-php/
all of them paginate feeds after getting of them form rss provider
my question
"is there way read rss feeds in paging way twitter or facebook apis?"
thank
there's no generic way work providers - give in response requests them. can/will paginate, others won't - you've discovered; won't - they'll give rss feed is.
if you're trying create generic module, need able handle paginated feeds if gets one. either need keep white-list of providers give paginated feeds or learn recognise paginated feeds when receives them - , handle them appropriately.
there lots of open source rss readers/aggregators around who's source code @ examples - http://tt-rss.org/redmine/projects/tt-rss/wiki popular , written in php - , see how it?
Comments
Post a Comment