An open API service indexing awesome lists of open source software.

https://github.com/joshday/newsapi.jl

Access newsapi.org from Julia
https://github.com/joshday/newsapi.jl

julia newsapi

Last synced: 11 months ago
JSON representation

Access newsapi.org from Julia

Awesome Lists containing this project

README

          

[![Build Status](https://travis-ci.org/joshday/NewsAPI.jl.svg?branch=master)](https://travis-ci.org/joshday/NewsAPI.jl)

# NewsAPI

Powered by [NewsAPI.org](https://newsapi.org)

## First:

Add `ENV["NEWS_API_KEY"] = ` to `~/.julia/config/startup.jl`

## Then:

```julia
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)
```