Quantcast
Channel: how to handle 30x when using feedparser to parse rss url - Stack Overflow
Viewing all articles
Browse latest Browse all 2

how to handle 30x when using feedparser to parse rss url

$
0
0

Now I am using Python 3 feedparser to parse some RSS url, this is my code:

if __name__ == "__main__":    try:        feed = feedparser.parse("https://ucw.moe/feed/rss")        print(feed.status)    except Exception as e:        logger.error(e)

but I get this error:

HTTP Error 302: The HTTP server returned a redirect error that would lead to an infinite loop.The last 30x error message was:Found

what should I do to fix this problem?


Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles





Latest Images