-
Notifications
You must be signed in to change notification settings - Fork 54
Article URL to URI mappings
Event Registry keeps for each stored article an internal URI (unique resource identifier). These URIs can be used in queries and are provided as one of the article's details that are returned as a result of the query.
Article's URL, on the other hand, is not something that can be used directly to access additional information about the article. There is however a utility class that is able to provide a mapping from the article's URL to the URI that can then be used to access the article.
Here is an example of usage:
from eventregistry import *
er = EventRegistry(apiKey = YOUR_API_KEY)
# create the URL->URI mapper
artMapper = ArticleMapper(er)
# get the URI for article given the URL
artUri = artMapper.getArticleUri("http://www.mynet.com/haber/guncel/share-2058597-1")
# make the query using the article URI
q = QueryArticle.queryByUri(artUri)
q.addRequestedResult(RequestArticleInfo()) # get all info about the specified article
res = er.execQuery(q)
Core Information
Usage tracking
Terminology
EventRegistry
class
ReturnInfo
class
Data models for returned information
Finding concepts for keywords
Filtering content by news sources
Text analytics
Semantic annotation, categorization, sentiment
Searching
Searching for events
Searching for articles
Article/event info
Get event information
Get article information
Other
Supported languages
Different ways to search using keywords
Feed of new articles/events
Social media shares
Daily trends
Find the event for your own text
Article URL to URI mapping