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
- Host: GitHub
- URL: https://github.com/johncoene/parsely
- Owner: JohnCoene
- License: other
- Created: 2018-09-10T16:00:10.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-10-11T08:54:31.000Z (over 7 years ago)
- Last Synced: 2025-01-26T14:48:37.808Z (over 1 year ago)
- Topics: parsely, rstats
- Language: R
- Homepage:
- Size: 34.2 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://travis-ci.org/JohnCoene/parsely)
# parsely

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