Forums

Feedparser

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]

Are you using a free account?

Yep. Would I have to upgrade?

I think so - please see https://www.pythonanywhere.com/forums/topic/1151/#id_post_8056

HTH Jim

@coderickl4m4r -- jgmdavies is right, you'd hit a limit of free accounts. I see you've upgraded since this post -- is everything working OK now?