Skip to main content

All Questions

Tagged with
0 votes
1 answer
178 views

Feedparser not parsing email body properly

I'm trying to parse the below (which came from a gmail email body) using feedparser by feeding it in as a raw text feed. I'll be displaying it on a page so I want it to look like it did in the email ...
Drizzit12's user avatar
  • 189
1 vote
1 answer
2k views

How to render special characters in jinja templates with flask

I am fetching data from an API as JSON in Flask, and attempting to render this out to a Jinja Template as RSS, but characters from the JSON such as apostrophes and emdashes get rendered out as ’ and ...
mheavers's user avatar
  • 30.2k
0 votes
2 answers
2k views

How to update RSS Feed every 5 seconds in Python using Flask

I did a lot of research and nothing relevant worked. Basically I am trying to scrape RSS Feed and populate the data in a table format on a webpage created using Python Flask. I have scraped the data ...
Sebanti's user avatar
  • 21
0 votes
1 answer
128 views

How to display French character encoding in RSS feed with python using feedgen

I am using Feedgen to generate a RSS feed but how can I set the encoding to show French character. app.py # Flask package # pip install flask from flask import make_response from flask import Flask, ...
Papouche Guinslyzinho's user avatar
0 votes
1 answer
1k views

Python+Flask dynamic generated RSS feed is invalid

I'm trying to create an RSS feed for my Blog app at patife.com/rss/. The app is built on python with Flask. I tried creating a template that would dynamically generate the RSS with all entries.. but ...
Humberto's user avatar
2 votes
1 answer
2k views

How do you set an RSS mimetype using Flask?

I have a Python script that I run that generates the text for an RSS feed, which I then serve with the following line in Flask: return render_template('rss.xml', mimetype='application/rss+xml') ...
Aleksey Bilogur's user avatar
4 votes
1 answer
2k views

Flask + feedparser RSS reader takes too much (15 s) to load. How can I reduce this time?

What I'm making: An RSS reader with a couple (10 to 15) fixed feeds. The problem: When I hit refresh on the browser, it takes around 15 seconds to load. I know that most of the loading time is ...
Santiago Quiroga's user avatar