You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It appears that feedparser's built-in HTTP client is not interacting with the mihu.live server in a nice way. The server is returning HTTP 403 and an HTML document, not an actual feed.
If you install the requests package and use that, mihu returns a valid feed. As I intend to scrap the custom HTTP client in feedparser and use an established package like requests, I am going to close this issue -- no time will be invested to fix feedparser's HTTP client code. Please try using this to make your code more robust:
importrequestsimportfeedparserdoc=requests.get('https://www.mihu.live/index.php/feed/')
result=feedparser.parse(doc.text)
print(result.entries[1].title) # Currently outputs "Oracle Live SQL——SQL在线练习平台"
for example:
https://www.mihu.live/index.php/feed/
got:
The text was updated successfully, but these errors were encountered: