Skip to content

Instantly share code, notes, and snippets.

View gxjansen's full-sized avatar

Guido X Jansen gxjansen

View GitHub Profile
@gxjansen
gxjansen / google_search_console_daily.R
Created June 2, 2017 10:55 — forked from ryanpraski/google_search_console_daily.R
Download Google Search Console data (formerly webmaster tools) to R using searchConsoleR package. This script downloads data for the most recent day of search console data which is 3 days ago. Tutorial describing how to automate daily Google Search Console pulls using this script: http://www.ryanpraski.com/google-search-console-api-r-guide-to-ge…
## A script to download and archive Google search console analytics (formerly webmaster tools)
##
## searchConsoleR package created by Mark Edmondson (http://markedmondson.me)
##
## This script downloads and writes data to .csv for the most recent day of search console data (3 days ago)
## load the required libraries
## (Download them with install.packages("googleAuthR") and install.packages("searchConsoleR") if necessary
library(googleAuthR)
library(searchConsoleR)