On Mar 23, 2014 3:56 PM, "tad na" <teddyb...@gmail.com> wrote:
>
> This is the error I get with
> 1. print data[x].pubDate.text
>     AttributeError: 'NoneType' object has no attribute 'text'
> 2. print data[x].pubDate
>     It results in "None"

So the problem is that it's not even finding the pubDate tag in the first
place. Some sites on the Web suggest that beautiful soup normalizes all
tags to lowercase; try looking for the pubdate tag instead.
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to