标签: python beautifulsoup
我实际上尝试使用feedfinder2,但它没有帮助。
答案 0 :(得分:0)
我没有进行过相当广泛的测试,但您可以尝试:
soup = BeautifulSoup(your_file, "xml") # RSS feeds start with <rss> if soup.html is None: # Do html stuff else: # code that processes the rss