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

Checking updates for rss feed every minute using etags

This is the code I am using for checking RSS feed updates. I am storing the last modified and etag of the feed in variables . whenever there is an update i am updating these 2 variables and rechecking every minute. Is this logic correct ? Kindly…
kar
  • 198
  • 1
  • 8
2
votes
2 answers

How to fix SSL: CERTIFICATE_VERIFY_FAILED feedparser?

feedparser.parse('https://habrahabr.ru/rss/feed/posts/6266e7ec4301addaf92d10eb212b4546') some days ago it but now it doesn't it is python3 feedparset bozo_exception': URLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed…
Andrey
  • 633
  • 2
  • 8
  • 13
2
votes
1 answer

Feedparser Python : Is there a way to handle connection errors?

I am talking about the HTTP errors, for instance "404 Not Found". I read the documentation but found nothing that could help me.
Marvin Lerousseau
  • 363
  • 2
  • 4
  • 9
2
votes
2 answers

how to get feedparser to send a cache-control header?

I'm using python feedparser in an aggregator client that runs behind a squid proxy. I want it to send a cache-control: max-age=600 header in the request, so that we get a reasonably up-to-date response. (At the moment the feeds are returned by the…
poolie
  • 9,289
  • 1
  • 47
  • 74
2
votes
2 answers

Translate Spanish feed to English before storing it in MYSQL database

I am new to ruby on rails and I have just started watching rails casts tutorials. I have understood on how to parse feeds using feedzirra if the feed is in English but if I have a feed like this which is in spanish then how do i parse this feed? The…
gkolan
  • 1,571
  • 2
  • 20
  • 37
2
votes
0 answers

Pagination using feedparser python

how to get old post of rss blog feed using feedparser module in python? import feedparser content = feedparser.parse('http://blog.itiffin.in/index.php/feed/') print len(content['items']) # gives 10. But there are lot of old blogs feeds there. How…
Hari Krishnan
  • 1,066
  • 2
  • 13
  • 31
2
votes
2 answers

Python FeedParser format Reddit Nicely

I am trying to create a program that prints out the first 5 jokes from /r/Jokes but I am having some trouble formatting it to look nice. I want to have it set out like this. Post Title: Post Content For example, here is one of the jokes directly…
FeaturedEpic
  • 37
  • 1
  • 10
2
votes
0 answers

Package pydelicious and feedparser

I am trying to learn python for online social network from a book. while working for delicious data, its written that Data from delicious is made available through an API that returns data in XML format. To make things even easier for you, there…
Kims
  • 31
  • 3
2
votes
2 answers

Python feedparser can not read WordPress custom feeds

I'm Using Python2.7 and feedparser. I need to read feed of a wordpress site. I could read some common feed tags like title, content, ... of each items from feed, but I couldn't read some custom feed that added. The feed url is:…
Aida.Mirabadi
  • 996
  • 4
  • 10
  • 27
2
votes
5 answers

Error installing FeedZirra

I am new to Ruby on Rails. I am excited about Feed parsing but when I install FeedZirra I am getting this error. I use Windows 7 and Ruby 1.8.7. Please help. Thanks in advance. C:\Ruby187>gem sources -a http://gems.github.com http://gems.github.com…
gkolan
  • 1,571
  • 2
  • 20
  • 37
2
votes
1 answer

AttributeError: object has no attribute 'title'

I am learning the book programming collective intelligence. Below is my code: import feedparser import re # Returns title and dictionary of word counts for an RSS feed def getwordcounts(url): # Parse the feed d = feedparser.parse(url) …
epx
  • 571
  • 4
  • 16
  • 27
2
votes
1 answer

UndeclaredNamespace error with feedparser

Hello I am getting the following error when using Feedparser: raise UndeclaredNamespace, "'%s' is not associated with a namespace" % givenprefix feedparser.UndeclaredNamespace: 'media' is not associated with a namespace I have managed to…
timebandit
  • 794
  • 2
  • 11
  • 26
2
votes
1 answer

Python encoding text from RSS using feedparser

I'm trying to parse data from a RSS feed using feedparser module. import feedparser def main(): try: rss = feedparser.parse('http://s.stooq.pl/rss/n.rss') print(rss.entries[0].title) except Exception as e: …
chilliq
  • 1,212
  • 3
  • 13
  • 32
2
votes
4 answers

How to detect if a page is an RSS or ATOM feed

I'm currently building a new online Feed Reader in PHP. One of the features I'm working on is feed auto-discovery. If a user enters a website URL, the script will detect that its not a feed and look for the real feed URL by parsing the HTML for the…
Pepper
  • 2,932
  • 4
  • 25
  • 26
2
votes
2 answers

Python/XML RSS Feedparser - Blank Fields

I'm trying to parse the NOAA Weather RSS Feed. I've got my script pulling the entries just fine, but some of the fields are blank and I can't figure out why. It seems to be a problem with more complex data types in the feed. Here is the code: url =…
Hoopdady
  • 2,296
  • 3
  • 25
  • 40