Skip to content

Correction & question #9

@jphconstantin

Description

@jphconstantin

Yet me ...

I progress slowly but I progress. Now I am able to publish tweets.
Note that I was obliged to modify the code of the module helpers.py. Indeed, in Europe, the xml file contains a time zone.
I change
item_date = datetime.strptime(entry.published, "%a, %d %b %Y %H:%M:%S +0000")
by
item_date = datetime.strptime(entry.published, "%a, %d %b %Y %H:%M:%S %z")
If not, my database was always empty !

My feed file also contains an image ( https://github.com/jphconstantin/faune_flore_meyrin/tree/master/feed ) for each item.
But this doesn't appear in the tweets.
Shall I modify the schema of the database and main.py to display images ?

Thank you,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions