NewsAPI.jl

Access newsapi.org from Julia
Popularity
3 Stars
Updated Last
3 Years Ago
Started In
September 2019

Build Status

NewsAPI

Powered by NewsAPI.org

First:

Add ENV["NEWS_API_KEY"] = <key> to ~/.julia/config/startup.jl

Then:

using NewsAPI, Dates

s = NewsAPI.sources()

e = NewsAPI.everything(q="bitcoin", from=today() - Day(1))

h = NewsAPI.topheadlines(country="us")

# Returned objects satisfy the Tables.jl interface
using DataFrames

DataFrame(s)
DataFrame(e)
DataFrame(h)

Used By Packages

No packages found.