Contents


Overview

Skill Level: Any Skill Level

Beginner

First, what is this for?RSS feeds usually just provide an excerpt of the original news. In order to process the data, we need the full original text, which is available just a click away. That’s what FiveFilters (https://bitbucket.org/fivefilters/full-text-rss ) is for. It’s a PHP application that generates a new RSS feed that contains the complete […]

Ingredients

Bluemix account

Eclipse

 

Step-by-step

  1. First, what is this for?

    RSS feeds usually just provide an excerpt of the original news. In order to process the data, we need the full original text, which is available just a click away. That's what FiveFilters (https://bitbucket.org/fivefilters/full-text-rss ) is for. It's a PHP application that generates a new RSS feed that contains the complete news / articles.

    This tutorial also shows how easy is to create and configure a PHP runtime using Bluemix.

     

  2. Try FiveFilters

    Open your PHP Runtime (the URL may vary, this tutorial's is http://mynewspaper.mybluemix.net/index.php )

    Provide a RSS feed, for example

    http://feeds.folha.uol.com.br/emcimadahora/rss091.xml

    That's great. Now you have a RSS feed that retrieves the full original article/news.

    http://mynewspaper.mybluemix.net/makefulltextfeed.php?url=feeds.folha.uol.com.br%2Femcimadahora%2Frss091.xml&max=10&links=remove&exc=&submit=Create+Feed

     

  3. Download FiveFilters And Add It To The PHP Runtime

    Older versions of FiveFilters can be downloaded free of charge from https://bitbucket.org/fivefilters/full-text-rss

    If you need support, then you have to buy a license (see http://fivefilters.org/content-only/ )

    Uncompress the files into your eclipse project.

    create this configuration directory and file (use Eclipse Navigator view)

    Commit your changes to the GIT repository and push.

  4. Get The Source Code From The GIT Repository

    Go back to the Bluemix Dashboard, choose your new PHP Runtime and click on it.

    Click on “add GIT”

    Copy the URL and clone it using Eclipse

    Import it as a Project

  5. Create a New PHP Runtime

    Log into Bluemix, go to the calalog, runtimes and create a new PHP runtime.

    Give it a name

  6. Conclusion

    If you need to crunch English-based news data, consider using Bluemix Alchemy DataNews API. But if you need to get local news in your own language, this tutorial is for you.

Join The Discussion