Quantcast
Viewing all articles
Browse latest Browse all 105

AttributeError: object has no attribute 'published' when parsing CNN source

I'm facing this problem since parsing CNN.RSS site. It only get first 7 entries then i get this problem. Below it my log .. Please help me :(. Thanks you

This is my code:

import feedparserurl = "http://rss.cnn.com/rss/edition.rss"feed = feedparser.parse(url)for news in feed.entries:    print(news.published)

Log

My log:https://pastebin.com/vMJSXD0J


Viewing all articles
Browse latest Browse all 105

Trending Articles



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