Python

  1. Home
  2. Computing & Technology
  3. Python

How Python Processes Non-English RSS Feeds

From Al Lukaszewski, for About.com

2 of 5

Setting up the Non-English RSS Feeds for Python to Read

In feedlist.dat, insert the following three lines:

SpiegelDeutsche;http://www.spiegel.de/schlagzeilen/rss/0,5291,,00.xml
Süddeutsche;http://www.sueddeutsche.de/app/service/rss/tt/tt.xml
France24;http://www.france24.com/france24Public/rss.do?cat=1&language=fr
These are, in sequence, the RSS feeds for the German language version of Der Spiegel (Germany's most-read weekly), Süddeutsche Zeitung (one of Germany's premier dailies), and the recently launched France 24 (the French equivalent of CNN).

Now add the corresponding entries to menu.html:

<option value="SpiegelDeutsche">Der Spiegel</option>
<option value="Süddeutsche">Süddeutsche Zeitung</option>
<option value="France24">France 24</option>
I put them just below the first entry (the one for Der Spiegel's English language feed), but you can put them anywhere in the list. Just like with the English language feeds, what matters most is that the first value of a line in feedlist.dat matches one of the values in the HTML of the menu.

So, this should work. Let's see what happens when we try.

Explore Python

About.com Special Features

Build Your Own Website

Step-by-step advice on how to do everything from choosing a Web host to promoting your content. More >

Connect Your Home Computers

Easy ways to connect two computers for networking purposes. More >

Python

  1. Home
  2. Computing & Technology
  3. Python

©2009 About.com, a part of The New York Times Company.

All rights reserved.