A way to fix a problem "pydelicious.get_popular" doesn't work.


When I tried to work the following sample code in "Programming Collective Intelligence", an error occurred.

import pydelicious
pydelicious.get_popular(tag='programming')

The error message was

[{'count': '', 'extended': '', 'hash': '', 'description': u'something went wrong', 'tags': '', 'href': '', 'user': '', 'dt': ''}]


I fixed 2 line of "pydelicious.py".

DLCS_RSS = 'http://del.icio.us/rss/'

to

DLCS_RSS = 'http://feeds.delicious.com/v2/rss/'
def get_popular(tag = ""):
  return getrss(tag = tag, popular = 1)

to

def get_popular(tag = ""):
  return getrss(tag = tag, popular = 0)


The problem was solved.



references:
https://delicious.com/rss
http://clintlalonde.net/2012/08/24/getting-a-rss-feed-for-a-delicious-tag/


download site of pydelicious.py
http://code.google.com/p/pydelicious/downloads/list