NewsAPI.jl

Helper functions for using newsapi.org
Popularity
4 Stars
Updated Last
1 Year 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.