Author related calls, filtering of sources by alexa ranking
Added
- added
EventRegistry.getUsageInfo()
method, which returns the number of used tokens and the total number of available tokens for the given user. The existing methodsEventRegisty.getRemainingAvailableRequests()
andEventRegistry.getDailyAvailableRequests()
are still there, but their value is only valid after making at least one request. - added searching of articles and events based on article authors. You can now provide
authorUri
parameter when creating theQueryArticles
andQueryEvents
instances. - added author related methods to
EventRegistry
class:EventRegistry.suggestAuthors()
to obtain uris of authors for given (partial) name andEventRegistry.getAuthorUri()
to obtain a single author uri for the given (partial) name. - added ability to search articles and events by authors.
QueryArticles
andQueryEvents
constructors now also acceptauthorUri
parameter that can be used to limit the results to articles/events by those authors. UseQueryOper.AND()
orQueryOper.OR()
to specify multiple authors in the same query. - BETA: added a filter for returning only articles that are written by sources that have a certain ranking. The filter can be specified by setting the parameters
startSourceRankPercentile
andendSourceRankPercentile
when creating theQueryArticles
instance. The default value forstartSourceRankPercentile
is 0 and forendSourceRankPercentile
is 100. The values that can be set are not any value between 0 and 100 but has to be a number divisible by 10. By settingstartSourceRankPercentile
to 0 andendSourceRankPercentile
to 20 you would get only articles from top ranked news sources (according to Alexa site ranking) that would amount to about approximately 20% of all matching content. Note: 20 percentiles do not represent 20% of all top sources. The value is used to identify the subset of news sources that generate approximately 20% of our collected news content. The reason for this choice is that top ranked 10% of news sources writes about 30% of all news content and our choice normalizes this effect. This feature could potentially change in the future. QueryEventArticlesIter
is now able to return only a subset of articles assigned to an event. You can use the same filters as with theQueryArticles
constructor and you can specify them when constructing the instance ofQueryEventArticlesIter
. The same kind of filtering is also possible if you want to use theRequestEventArticles()
class instead.- added some parameters and changed default values in some of the result types to reflect the backend changes.
- added optional parameter
proxyUrl
toAnalytics.extractArticleInfo()
. It can be used to download article info through a proxy that you provide (to avoid potential GDPR issues). TheproxyUrl
should be in format{schema}://{username}:{pass}@{proxy url/ip}
.