All Projects → EventRegistry → Event Registry Python

EventRegistry / Event Registry Python

Licence: mit
Python package for API access to news articles and events in the Event Registry

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Event Registry Python

Realtime Newsapi
Financial News Aggregator - Real Time & Query API for Financial News
Stars: ✭ 34 (-81.01%)
Mutual labels:  news, news-feed
Stream Framework
Stream Framework is a Python library, which allows you to build news feed, activity streams and notification systems using Cassandra and/or Redis. The authors of Stream-Framework also provide a cloud service for feed technology:
Stars: ✭ 4,576 (+2456.42%)
Mutual labels:  news, news-feed
Xreader
XML, NEWS, RSS & Scrapping Reader maked in Xamarin, for educational purpose.
Stars: ✭ 259 (+44.69%)
Mutual labels:  news, news-feed
Flutter news app
A Simple News App built with Flutter.
Stars: ✭ 117 (-34.64%)
Mutual labels:  news, news-feed
Mobilizon
Gather, organize and mobilize yourselves with a convivial, ethical, and emancipating tool.
Stars: ✭ 164 (-8.38%)
Mutual labels:  events
Newswatch React Native
📺 A news app using YouTube playlists, built with React Native
Stars: ✭ 155 (-13.41%)
Mutual labels:  news
Timber Ruby
🌲 Great Ruby logging made easy.
Stars: ✭ 154 (-13.97%)
Mutual labels:  events
Sonatanewsbundle
Symfony SonataNewsBundle
Stars: ✭ 153 (-14.53%)
Mutual labels:  news
N2h4
네이버 뉴스 수집을 위한 도구
Stars: ✭ 177 (-1.12%)
Mutual labels:  news
Eztime
ezTime — pronounced "Easy Time" — is a very easy to use Arduino time and date library that provides NTP network time lookups, extensive timezone support, formatted time and date strings, user events, millisecond precision and more.
Stars: ✭ 173 (-3.35%)
Mutual labels:  events
Libae
redis's async event loop library
Stars: ✭ 160 (-10.61%)
Mutual labels:  events
Noel
A universal, human-centric, replayable javascript event emitter.
Stars: ✭ 158 (-11.73%)
Mutual labels:  events
Nytdiff
Code for the twitter bot nyt_diff
Stars: ✭ 166 (-7.26%)
Mutual labels:  news
Django Newsfeed
A news curator and newsletter subscription package for Django
Stars: ✭ 155 (-13.41%)
Mutual labels:  news
Bigben
BigBen - a generic, multi-tenant, time-based event scheduler and cron scheduling framework
Stars: ✭ 174 (-2.79%)
Mutual labels:  events
Swissarmylib
Collection of helpful utilities we use in our Unity projects.
Stars: ✭ 154 (-13.97%)
Mutual labels:  events
Sypht Python Client
A python client for the Sypht API
Stars: ✭ 160 (-10.61%)
Mutual labels:  information-extraction
Just News
a userscript project that parses korean news site and then making more readable view
Stars: ✭ 173 (-3.35%)
Mutual labels:  news
Flutter For Wordpress App
🎃 Cross-platform wordpress news app built with Flutter and WP REST API.
Stars: ✭ 157 (-12.29%)
Mutual labels:  news
Reuters Full Data Set
Full dataset of Reuters composed of 8,551,441 news titles, links and timestamps (Jan 2007 - Aug 2016). Generate your own up to today!
Stars: ✭ 159 (-11.17%)
Mutual labels:  news

Accessing Event Registry's News API through Python

This library contains classes and methods that allow one to obtain from Event Registry (http://eventregistry.org) all available data, such as news articles, events, trends, etc.

The detailed documentation on how to use the library is available at the project's wiki page. Examples of use are in the Examples folder in the repository.

Changes introduced in the different versions of the module are described in the CHANGELOG.md as well as on the Releases page.

Installation

Event Registry package can be installed using Python's pip installer. In the command line, simply type:

pip install eventregistry

and the package should be installed. Alternatively, you can also clone the package from the GitHub repository at https://github.com/EventRegistry/event-registry-python. After cloning it, open the command line and run:

python setup.py install

Validating installation

To ensure the package has been properly installed run python and type:

import eventregistry

If you don't get any error messages then your installation has been successful.

Updating the package

As features are added to the package you will need at some point to update it. In case you have downloaded the package from GitHub simply do a git pull. If you have installed it using the pip command, then simply run

pip install eventregistry --upgrade

Authentication and API key

When making queries to Event Registry you will have to use an API key that you can obtain for free. The details how to obtain and use the key are described in the Authorization section.

Three simple examples to make you interested

Find news articles that mention Tesla in the article title

from eventregistry import *
er = EventRegistry(apiKey = YOUR_API_KEY)
# print at most 500 articles
MAX_ITEMS = 500
q = QueryArticlesIter(keywords = "tesla", keywordsLoc="title")
for art in q.execQuery(er, sortBy = "date", maxItems = MAX_ITEMS):
    print(art)

Print a list of recently added articles mentioning George Clooney

from eventregistry import *
er = EventRegistry(apiKey = YOUR_API_KEY)
q = QueryArticlesIter(conceptUri = er.getConceptUri("George Clooney"))
for art in q.execQuery(er, sortBy = "date"):
    print art

Search for latest events related to Star Wars

from eventregistry import *
er = EventRegistry(apiKey = YOUR_API_KEY)
q = QueryEvents(conceptUri = er.getConceptUri("Star Wars"))
q.setRequestedResult(RequestEventsInfo(sortBy = "date", count=10))   # return event details for last 10 events
print er.execQuery(q)

Run a Jupyter notebook

We've also prepared an interactive Jupyter notebook where we demonstrate how you can use the SDK. You can run it online and modify the individual examples.

Run Jupyter notebook with examples

Where to next?

Depending on your interest and existing knowledge of the eventregistry package you can check different things:

Terminology. There are numerous terms in the Event Registry that you will constantly see. If you don't know what we mean by an event, story, concept or category, you should definitely check this page first.

Learn about EventRegistry class. You will need to use the EventRegistry class whenever you will want to interact with Event Registry so you should learn about it.

Details about articles/events/concepts/categories/... that we can provide. When you will be requesting information about events, articles, concepts, and other things, what details can you ask for each of these?

Querying events. Check this page if you are interested in searching for events that match various search criteria, such as relevant concepts, keywords, date, location or others.

Querying articles. Read if you want to search for articles based on the publisher's URL, article date, mentioned concepts or others.

Trends. Are you interested in finding which concepts are currently trending the most in the news? Maybe which movie actor is most popular in social media? How about trending of various news categories?

Articles and events shared the most on social media. Do you want to get the list of articles that have been shared the most on Facebook and Twitter on a particular date? What about the most relevant event based on shares on social media?

Daily mentions and sentiment of concepts and categories. Are you interested in knowing how often was a particular concept or category mentioned in the news in the previous two years? How about the sentiment expressed on social media about your favorite politician?

Correlations of concepts. Do you have some time series of daily measurements? Why not find the concepts that correlate the most with it based on the number of mentions in the news.

Data access and usage restrictions

Event Registry is a commercial service but it allows also unsubscribed users to perform a certain number of operations. Free users are not allowed to use the obtained data for any commercial purposes (see the details on our Terms of Service page). In order to avoid these restrictions please contact us about the available plans.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].