Search code examples
phprsssimplepierss-reader

Display full article using SimplePie


I used SimplePie to display RSS feed from a basketball website. The article titles show up but I want the entire article to display. I tried changing

echo $item->get_description() to echo $item->get_content()

it still only shows the little exert. I know it's possible because:

http://fulltextrssfeed.com/

this website displays the entire article just like how I want it. Any suggestions how to do this with SimplePie?


Solution

  • If an RSS feed does not contain the article, no matter which parser you use you will not be able to extract something from nothing.

    However, what I tend to do is use Diffbot to parse articles. They have an easy-to-use API and as far as I know is the best free article parser.

    So, you would get each URL and make a batch request to Diffbot which will return a large JSON array, which you can then extract the full article from.