KoreusBridge.php 579 B

12345678910111213141516171819202122
  1. <?php
  2. class KoreusBridge extends FeedExpander {
  3. const MAINTAINER = "pit-fgfjiudghdf";
  4. const NAME = "Koreus";
  5. const URI = "http://www.koreus.com/";
  6. const DESCRIPTION = "Returns the newest posts from Koreus (full text)";
  7. protected function parseItem($item) {
  8. $item = parent::parseItem($item);
  9. $html = getSimpleHTMLDOMCached($item['uri']);
  10. $text = $html->find('p.itemText', 0)->innertext;
  11. $item['content'] = utf8_encode($text);
  12. return $item;
  13. }
  14. public function collectData(){
  15. $this->collectExpandableDatas('http://feeds.feedburner.com/Koreus-articles');
  16. }
  17. }