Quickstart

Installing

Install iepy using

pip install -U iepy

And than import using

import iepy

Getting events

To get events you can use

iepy.getEvents(iepy.Date(12, 24))

to get the events on a date. To get events on this day, use

iepy.getTodayEvents()

Both of these functions return a list of lists of Event one list contains the event from one year in every language.

Tweeting events

You can also tweet events, for this you will need the tweepy library

for event in getTodayEvents():
    for eventLang in event:
        tweetEvent(
            eventLang,
            os.environ["consumerKey"],
            os.environ["consumerSecret"],
            os.environ["accessToken"],
            os.environ["accessTokenSecret"]
        )

If you don’t supply accessToken and accessTokenSecret you will be promted with a verification link.