EventRegistry / event-registry-python

Python package for API access to news articles and events in the Event Registry
http://eventregistry.org/
MIT License
232 stars 54 forks source link

Get articles by URI broken #60

Closed nwself closed 1 year ago

nwself commented 1 year ago

Getting articles as in the example in this repo

q = QueryArticles.initWithArticleUriList(["934903913", "934902493", "934902499", "934902488", "934899375", "934900984", "934890360", "934888250"])
res = er.execQuery(q)

is returning

{"error": "Requested information is not available"}

How can I get article data from a list of article URIs?

gregorleban commented 1 year ago

The request works normally, you just need to have access to the historical data available to retrieve the articles with those URIs since they have been published many years ago.

If you create er instance with

er = EventRegistry(allowUseOfArchive=False)

or have access to historical data disabled in your account setting then you can still use this feature but make sure you try to retrieve articles that have not been published > 1 month ago.

nwself commented 1 year ago

That was it! Thanks!