newspaper
newspaper copied to clipboard
Cannot fetch RSS-feeds because of wrong search-tag
Hey,
I was wondering why the function feed_urls() does not return any feeds, even for the example page cnn.com, although it does have RSS-feeds. So I dug deeper into the code and found in the extractors.py in the function get_feed_urls()
the argument:
kwargs = {'attr': 'type', 'value': 'application\/rss\+xml'}
It seems like because of the backslashes, the function cannot find the element on the website. If I remove them, I get all the RSS-feeds:
kwargs = {'attr': 'type', 'value': 'application/rss+xml'}
Does anybody else have this problem?
Thanks!