https://github.com/jsonbecker/jsonfeedr
A package for JSON feeds in R
https://github.com/jsonbecker/jsonfeedr
jsonfeed r rstats
Last synced: over 1 year ago
JSON representation
A package for JSON feeds in R
- Host: GitHub
- URL: https://github.com/jsonbecker/jsonfeedr
- Owner: jsonbecker
- License: other
- Created: 2017-06-02T01:57:46.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-06-02T01:58:17.000Z (about 9 years ago)
- Last Synced: 2025-01-29T18:11:30.204Z (over 1 year ago)
- Topics: jsonfeed, r, rstats
- Language: R
- Size: 3.91 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: NEWS.md
- License: LICENSE
Awesome Lists containing this project
README
# jsonfeedr
`jsonfeedr` is a simple, silly package to go get [JSON feed](https://jsonfeed.org) data from the web.
## Example
[Six Colors](https://sixcolors.com) is one of my favorite sites on the web and they support JSON feed. If I wanted to get information about the site, I may grab some meta data from the feed like so:
```r
get_feed_info("https://sixcolors.com/feed.json")
```
Maybe what I want is the last set of posts, so I can analyze how frequently posts are made.
```r
items <- get_feed_items("https://sixcolors.com/feed.json")
table(as.Date(results$date_published))
```
Or if I want all of the info at once in a list, I can just `get_feed('https://sixcolors.com/feed.json')`.