RSS is a way to distribute content on your website or meta-tag assets and distribute them to various platforms like Apple News, iTunes, Flipboard, and scores of other similar platforms. Owing to its support to perform Big-Data, Natural Language Processing, and simplicity Python has emerged as a popular programming language. This tutorial helps you build a RSS Parser using Python. Installing FeedParser Before going any further into coding system, please ensure you have Python
In the last tutorial, we learned about how to build a Python based RSS Parser. Continuing that conversation and building on that tutorial, let’s now look at parsing Namespaces and Namespace specific elements. Getting Ready For the purpose of this tutorial, we will use the WhizRssAggregator.py file that we created in the previous tutorial. Parsing Namespaces Let’s extend the RSS Aggregator file below. import feedparser
feedurl = ""
When you use Cloud Foundry to build Python based solutions like Django, you end up running into the issue of Python versions. By default Cloud Foundry, defaults the Python version to 2.7.11. Between version 2.7.11 and the latest 3.5.x, Python has made a lot of changes and even simple string processing functions could potentially error out. Create a runtime.txt The best way to solve for this is to create a runtime.txt in the root folder of your application. This is the same lo
Amongst, other things, Django as a powerful framework allows you to directly map your object-oriented models to a database table structures and in doing so also builds relationships in the backend. A big part of object-oriented programming is Inheritance and the tutorial below demonstrates how to create 1:1 relationship between models. Basic Background Let’s assume that you are creating a site that has a base model called content that stores basic aspects of a content like ti