Workaround for errors that occur with HTTP error 500:internal Server error when using pydelicious:

Source: Internet
Author: User

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:

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.