I'm trying to integrate the feedparser module into my Flask web application, but whenever I get my application to return something, it throws a 500 Internal Server Error.
Here's the code from flask_app.py:
from flask import Flask
from feedparser import parse
app = Flask(__name__)
@app.route('/')
def hello_world():
d = parse("http://feeds.reuters.com/Reuters/PoliticsNews")
return d.feed.title
Not sure why Markdown format isn't showing up.
[edited by admin: formatting. Looks like we don't support the ``` syntax]