Skip to content

Iterators & required use of apiKey

Compare
Choose a tag to compare
@gregorleban gregorleban released this 06 Mar 07:34
· 98 commits to master since this release

In this release we introduce two major changes. The first change is the possibility of using iterators to iterate over search results containing events and articles.
Details and an example of the iterator can be read on the blog post: http://blog.eventregistry.org/2017/03/05/simplifying-the-data-access-with-iterators/
as welll as in the documentation:
https://github.com/EventRegistry/event-registry-python/wiki/Searching-for-events#queryeventsiter
https://github.com/EventRegistry/event-registry-python/wiki/Searching-for-articles#queryarticlesiter
https://github.com/EventRegistry/event-registry-python/wiki/Get-event-information#queryeventarticlesiter

The other significant change is that we have removed the EventRegistry.login() method. The users should now authenticate using their API key. You can specify your API key when you create EventRegistry instance:

er = EventRegistry(apiKey = YOUR_API_KEY)

If you don't know how to obtain your API key, please check the documentation: https://github.com/EventRegistry/event-registry-python/wiki/EventRegistry-class#authorization