Skip to content
New issue

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

date_parsed not part of feedparser.item #9

Open
jheasly opened this issue Jun 20, 2014 · 0 comments
Open

date_parsed not part of feedparser.item #9

jheasly opened this issue Jun 20, 2014 · 0 comments

Comments

@jheasly
Copy link

jheasly commented Jun 20, 2014

I think you can remove this:

            if hasattr(entry, 'date_parsed'):
                timestamp = datetime.fromtimestamp(
                    time.mktime(entry.date_parsed))

In the feedparser 5.1.3 docs, date_parsed isn't an attribute of a feed entry so that hasattr will never evaluate to True.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant