Problem:
In the process of learning "collective wisdom Programming", the second chapter if you meet the pydelicious. Pydeliciousexception:http Errors 500:internal Server Error specific
Workaround I found it on the stack overflow, the original link is divided into two parts
Http://stackoverflow.com/questions/29543799/pydelicious-get-popularprogramming-doesnt-return-any-valid-url and
Http://stackoverflow.com/questions/35959784/pydeliciousexception-http-error-500-internal-server-error
The workaround is to modify the pydelicious.py file, which is the provided API.
Workaround:
A total of three places need to be modified:
(1) Dlcs_rss = ' http://del.icio.us/rss/' changed to Dlcs_rss = ' http://feeds.delicious.com/v2/rss/'
(2) def get_popular (tag = ""):
return Getrss (tag = tag, popular = 1)
Switch
def get_popular (tag = ""):
return Getrss (tag = tag, popular = 0)
(3) def get_url (self, URL):
Return ' http://del.icio.us/url/?url=%s '% (URL,)
Switch
def get_url (self, URL):
Return "Http://feeds.delicious.com/v2/rss"% (URL,)
Description: The reason for the HTTP error 500:internal server error error is that the server is not responding, and in my analysis it appears to be an address error caused by the access. The specific analysis can refer to the two
Stack Overflow URL. Welcome to the Exchange.
Workaround for errors that occur with HTTP error 500:internal Server error when using pydelicious: