Newsie v0.1.0 Newsie.Providers.Newsriver View Source
Client for Newsriver
Configuration
Requires :api_key
to use.
See Newsie.ProviderConfig
for documentation on how to configure providers.
Link to this section Summary
Functions
Search for news articles with a SQL-like query
Search the list of news sources provided by this API.
Link to this section Functions
Specs
config() :: keyword()
Specs
search(any(), keyword()) :: {:error, any()} | {:ok, [Newsie.Article.t()]}
Search for news articles with a SQL-like query
Usage
Newsie.Providers.Newsriver.search("language:EN AND website.domainName:cnn.com", limit: 5)
Specs
Search the list of news sources provided by this API.
Example
Newsie.Providers.Newsriver.search_sources("cnn")