Questions tagged [feedparser]

A Python library that parses feeds in all known formats, including Atom, RSS, and RDF.

Universal feed parser, handles RSS 0.9x, RSS 1.0, RSS 2.0, CDF, Atom 0.3, and Atom 1.0 feeds.

Links:

362 questions
5
votes
2 answers

Populating a Django DateTimeField with feedparser

I'm attempting to read my school's athletics/activities calendar, available in iCal or RSS format, into a Django Events model using feedparser. Everything works, except the dates. Feedparser populates item.updated_parsed with a "9-tuple" but I can't…
jacobbaer
  • 1,011
  • 8
  • 13
5
votes
2 answers

Python RSS Parser that also handles FeedBurner

I was in the middle of writing a Python parser script for RSS feeds. I'm using feedparser, however, I'm stuck on parsing feeds from FeedBurner. Who needs FeedBurner nowadays? Anyways.. For example, I couldn't find ways to parse…
DavidL
  • 1,260
  • 2
  • 17
  • 35
5
votes
3 answers

Datetime localization with python/django

I am trying to parse an RSS feed. Entries in the feed have date elements like: 2016-09-21T16:00:00+02:00 Using feedparser, I try to do: published_time = datetime.fromtimestamp(mktime(entry.published_parsed)) But the problem is…
apiljic
  • 527
  • 4
  • 14
5
votes
4 answers

How to declare a timeout using urllib2 on Google App Engine?

I'm aware that urllib2 is available on Google App Engine as a wrapper of Urlfetch and, as you know, Universal Feedparser uses urllib2. Do you know any method to set a timeout on urllib2? Is the timeout parameter on urllib2 been ported on Google App…
systempuntoout
  • 71,966
  • 47
  • 171
  • 241
5
votes
2 answers

What module can I use to parse RSS feeds in a Perl CGI script?

I am trying to find a RSS parser that can be used with a Perl CGI script. I found simplepie and that's really easy parser to use in PHP scripting. Unfortunately that doesn't work with a Perl CGI script. Please let me know if there is anything that's…
JDesigns
  • 2,284
  • 7
  • 25
  • 39
5
votes
2 answers

How to parse the "" using feedparser?

The rss file is shown as below, i want to get the content in section media:group . I check the document of feedparser, but it seems not mention this. How to do it? Any help is appreciated.
Mingo
  • 1,613
  • 2
  • 16
  • 20
5
votes
1 answer

Feedparser-basics how to

I'm very new to Feedparser and have returned to Python after a long break so would appreciate any help. I've tried the docs, which are very good, but I'm still slightly lagging. How would I get Feedparser to take an rss feed and from that get the…
James Wanchai
  • 2,861
  • 4
  • 21
  • 16
5
votes
1 answer

Django rss feedparser returns a feed with no "title"

I'm writing a basic RSS feed reader in Django. I have a form in which a user submits a rss feed, and I add it to his feeds list. But for some reason, I'm unable to extract basic information about the feed using feed parser. when i run the following…
YanivLib
  • 51
  • 3
5
votes
1 answer

python feedparser ImportError: No module named feedparser

I receive an error when I attempt to include the feedparser library into the interactive Python environment: >>>> import feedparser Traceback (most recent call last): File "", line 1, in ImportError: No module named…
craig
  • 25,664
  • 27
  • 119
  • 205
5
votes
2 answers

Python etag/last modified not working; how to get latest rss

I'm trying to write a python program that will grab and display any rss updates since the last time the program was run. I am using feedparser and trying to use etags and last modified as described here on SO but my test script seems to not be…
N Klosterman
  • 1,231
  • 14
  • 23
4
votes
1 answer

How can I access the response headers of a request that is piped to a feedparser

I am trying to parse an RSS feed using request js and feedparser-promised libraries. I am able to parse the feed using the below code. import Bottleneck from 'bottleneck'; const feedparser = require('feedparser-promised'); const limiter = new…
omnathpp
  • 135
  • 1
  • 2
  • 8
4
votes
1 answer

Difference between updated_parsed and published_parsed with feedparser in Python

I'm using feedparser and it seems that for a vast majority of feed items have a published_parsed field. However, some others only have an updated_parsed field. How do I know when to use one or the other? Am I safe if I use either one or the other,…
mircealungu
  • 6,831
  • 7
  • 34
  • 44
4
votes
2 answers

What can be used instead of parse_qs function

I have the following code for parsing youtube feed and returning youtube movie id. How can I rewrite this to be python 2.4 compatible which I suppose doesn't support parse_qs function ? YTSearchFeed = feedparser.parse("http://gdata.youtube.com" +…
mkrenge
  • 57
  • 1
  • 4
4
votes
2 answers

Get Feeds from FeedParser and Import to Pandas DataFrame

I'm learning python. As practice I'm building a rss scraper with feedparser putting the output into a pandas dataframe and trying to mine with NLTK...but I'm first getting a list of articles from multiple RSS feeds. I used this post on how to pass…
Nick Duddy
  • 910
  • 6
  • 20
  • 36
4
votes
2 answers

I'm getting an List index out of range error for an index that exist

Im using feed parser to obtain rss objects. When I run live_leak.links I get [{'type': 'text/html', 'rel': 'alternate', 'href': 'http://www.liveleak.com/view?i=abf_1476121939'}, {'type': 'application/x-shockwave-flash', 'rel': 'enclosure',…
losee
  • 2,190
  • 3
  • 29
  • 55
1
2
3
24 25