Skip to content

Latest commit

 

History

History
63 lines (42 loc) · 1.4 KB

README.md

File metadata and controls

63 lines (42 loc) · 1.4 KB

writingAssistantR

writingAssistantR provides an R interface for creating easily your premium guides with R and yourtext.guru API

A Premium Guide is THE list of the most important words of your content targeting a specific query. No need to make extensive literature search, they reversed engineered search engines algorithms in order to speed up your writing process.

See all documentation on data-seo.com or data-seo.fr

Install

Github

library(devtools)
install_github("voltek62/writingAssistantR")

CRAN version: Waiting...

How To

  1. Get your token https://yourtext.guru/profil/api

This key must be copied to the root of your project in a txt file : ytg_configuration.txt

token=YOURAPIKEY
debug=FALSE
  1. Create your premium guide
library(RCurl)
library(rjson)
library(XML)

initAPI()
status <- getStatus()

guide <- createGuide("crossfit","fr_fr","premium")
guide_id <- guide$guide_id

while(getGuide(guide_id)=="error") {
  print("Your guide is currently being created")
  Sys.sleep(40)
}

print("Your guide is ready")
guide.all <- getGuide(guide_id)
  1. Get your scores for one URL
url <- "http://www.wodnews.com"
scores <- checkGuide(guide_id, url)

Thanks to