Skip to content

Instantly share code, notes, and snippets.

View remibacha's full-sized avatar

Rémi Bacha remibacha

View GitHub Profile
@remibacha
remibacha / sherlock-holmes.R
Last active September 11, 2018 15:14 — forked from voltek62/sherlock-holmes.R
Add install.packages with condition
if(!require("ngram")){install.packages("ngram")}
if(!require("tm")){install.packages("tm")}
library(ngram)
library(tm)
# read txt file
url <- "https://raw.githubusercontent.com/voltek62/RsparkleR-examples/master/examples/advs.txt"
txt <- readLines(url)
@remibacha
remibacha / api-similarweb.R
Created July 19, 2018 09:07 — forked from voltek62/api-similarweb.R
get Web Traffic Data from SimilarWeb API with R
library(httr)
library(jsonlite)
# https://dataseolabs.com
# Doc : https://www.similarweb.com/corp/developer/
# Create your key here : https://pro.similarweb.com/#/account/api-management
# You can have freely 3 Months of Web Traffic Data
# conf
myList <- c("cuisineaz.com","marmiton.org","odelices.com","allrecipes.fr")