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

https://github.com/johncoene/parsely

🌿 R wrapper to the parse.ly API
https://github.com/johncoene/parsely

parsely rstats

Last synced: over 1 year ago
JSON representation

🌿 R wrapper to the parse.ly API

Awesome Lists containing this project

README

          

[![Travis build status](https://travis-ci.org/JohnCoene/parsely.svg?branch=master)](https://travis-ci.org/JohnCoene/parsely)

# parsely

![WEF](https://www.parse.ly/static/img/brand/logo-parsely-green-vertical.png)

Easily call [parse.ly](http://parse.ly/) API from R.

## Install

```R
devtools::install_github("JohnCoene/parsely")
```

## functions

* `ly_token`
* `ly_search`
* `ly_analytics`
* `ly_analytics_details`
* `ly_analytics_meta_details`
* `ly_shares`
* `ly_shares_details`
* `ly_shares_details_meta`
* `ly_referrers`
* `ly_referrers_post`
* `ly_referrers_details`
* `ly_referrers_details_meta`

## Example

```R
token <- ly_token("subdomain.domain.net", "XXxxX00X0X000XxXxXx000X0X0X00X")

rstats_posts <- ly_search(token, q = "r-tag") # search articles by keyword

# get analytics of posts tagged r-tag
rstats_analytics <- ly_analytics(token, type = "posts", tags = "r-tag")

# get details for specific URL
url <- "https://www.r-project.org/"

url_data <- ly_analytics_details(token, url = url)
```