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
0
votes
2 answers

Place Python Output in HTML Widget

This seems like a very simple question, so I will remove if it's a repeat. I just can't seem to find the answer. I'm using the feedparser module to parse an RSS feed. I want to post the output to a widget on a site. I don't want the python script to…
Jackson Egan
  • 2,715
  • 4
  • 18
  • 26
0
votes
1 answer

Confusion with python's feedparser speed, it's very fast on the command line but slow when im deploying

feed = feedparser.parse("http://someyoutubeurl") video_data = feed.entries[0] # Adding the data to a dict, etc... This line of code when typed on my python command line instantly runs and finishes. But when i'm deploying feedparser on my django web…
Lucas Ou-Yang
  • 5,505
  • 13
  • 43
  • 62
0
votes
3 answers

Accessing "content" attribute in feedparser

I'm using feedparser in Python to parse a remote xml feed. Results include the typical title/link/published/etc, however there is also a "content" tag that has the following value. How can I access the value attribute? [{'base': u'http://url.com',…
Joe
  • 1,762
  • 9
  • 43
  • 60
0
votes
1 answer

Feedparser.py in root directory but still not working on dev server

I have the feedparser.py in my project directory but my code does not work on the local google dev server for google app engine. I get this error, File "/home/ahmad/GAE/livemetals/lv.py", line 34, in d =…
user772401
  • 2,754
  • 3
  • 31
  • 50
0
votes
1 answer

Error accessing Gmail Atom feeds using feedparser

I was having a problem accessing my Gmail Atom feeds using feedparser module. For a non-password protected fees like a blog, for example, import feedparser d = feedparser.parse('http://karanjthakkar.wordpress.com/feed/') print d.feed.title The…
Karan Thakkar
  • 414
  • 2
  • 9
  • 26
0
votes
1 answer

div automatically added in $item->get_description(); using simplepie

I am getting a div that is appearing in the output from calling a RSS feed. It is ignoring my attempts to wrap it in a paragraph tag and pushes the data out to the div. foreach ($feed->get_items(0 , 3) as $item): $feedDescription =…
Carey Estes
  • 1,534
  • 2
  • 31
  • 59
0
votes
1 answer

accessing comments using feedparser

I have a Google app engine application and I'm trying to use feedparser to access a comment on the feed. I'm testing with a feed from Google blogger example
N.P
  • 245
  • 1
  • 12
0
votes
1 answer

How to find out if a feed has updated without etag and modified headers in response?

I'm parsing an atom feed using feedparser. The response headers keys sent back when I make a request are date,content-length,content-type,charset,connection,server. Here's the starting point of the feed,
gizgok
  • 7,303
  • 21
  • 79
  • 124
-1
votes
1 answer

Correctly sort RSS items by time

I'm getting RSS items from different RSS channels. And I'd like to sort them correctly by time and take into account the time zone, from the latests to the oldests. So far, I have the following code: import feedparser import…
xralf
  • 3,312
  • 45
  • 129
  • 200
-1
votes
1 answer

Why is my pythonscript breaking after hours of working fine?

I wrote a small simple program which checks the RSS feed of a german news site, saves the pubDate, title, description and link of the last article and saves it to a txt file. After running over 11 hours on my raspberry pi I suddenly get a…
-1
votes
1 answer

Feedparser not returning values, only metadata

I'm using feedparser to get info from a public database (https://knesset.gov.il/Odata/ParliamentInfo.svc/KNS_Bill()). Each of my entries looks as follows When accessing specific properties: url =…
Numy
  • 1
  • 1
-1
votes
2 answers

Handling duplicate data when parsing huge XML feeds

I'm writing a component which parses an xml feed with stock quotes and saves the result in a database. The problem is fairly straightforward, except that feed can not be read incrementallly. That is, there is no way to specify that you only want the…
Björn Lindqvist
  • 19,221
  • 20
  • 87
  • 122
-1
votes
1 answer

How do I access the image and image url in an RSS feed using Python?

I currently have this code in Python using feedparser: import feedparser RSS_FEEDS = {'cnn': 'http://rss.cnn.com/rss/edition.rss'} def get_news_test(publication="cnn"): feed = feedparser.parse(RSS_FEEDS[publication]) articles_cnn =…
Obie
  • 111
  • 1
  • 9
-1
votes
2 answers

python feedparser

How would you parse xml data as follows with python feedparser Jason John Smith
bob
  • 23
  • 6
-1
votes
1 answer

Update RSS feed every 2 minutes

I've searched pretty everywhere so that's why I'm asking here. My program shows a parsed RSS feed (news), that looks like this in the end: feedShow = feed['entries'][0]['title'] Now, this feedShow element is the text displayed later by a Label.…
Reogen
  • 13
  • 1
1 2 3
24
25