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
- Host: GitHub
- URL: https://github.com/joshday/newsapi.jl
- Owner: joshday
- License: mit
- Created: 2019-09-28T14:44:43.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-07-07T13:26:03.000Z (almost 5 years ago)
- Last Synced: 2025-04-08T00:41:35.742Z (about 1 year ago)
- Topics: julia, newsapi
- Language: Julia
- Homepage:
- Size: 21.5 KB
- Stars: 3
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](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)
```