We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
I am using Python 3.8.3 and feedparser==6.0.2 I have the following feed :
<channel> <atom:link href="http://joeroganexp.joerogan.libsynpro.com/rss" rel="self" type="application/rss+xml"/> <title>The Joe Rogan Experience</title> <pubDate>Fri, 27 Nov 2020 18:00:00 +0000</pubDate> ..... <itunes:author>Joe Rogan</itunes:author> <itunes:keywords>comedian,joe,monkey,redban,rogan,talking,ufc</itunes:keywords> <itunes:category text="Comedy"/> <itunes:category text="Society & Culture"/> <itunes:category text="Technology"/> <itunes:explicit>yes</itunes:explicit> <itunes:owner> <itunes:name><![CDATA[Joe Rogan]]></itunes:name> <itunes:email>joe@joerogan.net</itunes:email> </itunes:owner> <description><![CDATA[Conduit to the Gaian Mind]]></description> <itunes:subtitle><![CDATA[Joe Rogan's Weekly Podcast]]></itunes:subtitle> <itunes:type>episodic</itunes:type> <items> ...............
First 1)
When I do the following to get one category it works , ut i can not retrieve the other categories:
NewsFeed = feedparser.parse("http://rss_ul") print(NewsFeed.feed.category)
When I do the following to get several categories i get an error:
NewsFeed = feedparser.parse("http://rss_ul") print(NewsFeed.feed.categories)
ERROR :
return dict.__getitem__(self, key) KeyError: 'categories
I can retrieve the categories through the "tags" key, such as NewsFeed.feed.get("tags") but "tags" contains the "keywords" and "categories". such as :
NewsFeed.feed.get("tags")
{ "term": "comedian", ... }, { "term": "joe", ... }, ... { "term": "Comedy", ... }, { "term": "Society & Culture", ... }, { "term": "Technology", ... }
I want "categories" separated from "keywords".
i would like to know if there is a feature where i can parse a single tag?
Thank you
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi,
I am using Python 3.8.3 and feedparser==6.0.2
I have the following feed :
First 1)
When I do the following to get one category it works , ut i can not retrieve the other categories:
When I do the following to get several categories i get an error:
ERROR :
I can retrieve the categories through the "tags" key, such as
NewsFeed.feed.get("tags")
but "tags" contains the "keywords" and "categories".
such as :
I want "categories" separated from "keywords".
i would like to know if there is a feature where i can parse a single tag?
Thank you
The text was updated successfully, but these errors were encountered: