Quantcast
Channel: Active questions tagged feedparser - Stack Overflow
Viewing all articles
Browse latest Browse all 106

python feedparser and getting multiple categories (category) within a item

$
0
0
import feedparserimport webbrowserfeed = feedparser.parse("https://seekingalpha.com/feed.xml")feed_entries = feed.entriesfor entry in feed.entries:   article_title = entry.title   article_link = entry.link   article_published_at = entry.published # Unicode string   article_published_at_parsed = entry.published_parsed # Time object   e = entry.category   print ("{}[{}]".format(article_title, article_link))   print ("Published at {}".format(article_published_at))

In the above I'm only able to get the first of the category elements. I would like to list them all but most of all just the "symbol' ones.

Thank You


Viewing all articles
Browse latest Browse all 106

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>