Skip to content

Instantly share code, notes, and snippets.

Avatar

Zach Doty zldoty

View GitHub Profile
@zldoty
zldoty / mechanical-google-search-console-export
Created July 28, 2021 14:44
Mechanical export of up to 16 months of Google Search Console data in R
View mechanical-google-search-console-export
# Load packages #
library(searchConsoleR)
library(dplyr)
library(ggplot2)
library(writexl)
library(stringr)
# Authorize & choose Google profile #
scr_auth()
@zldoty
zldoty / zld-r-gsc-probable-voice-0
Created July 26, 2021 14:17
R Code Snippet for Extracting All Probable Voice Query Information from Google Search Console
View zld-r-gsc-probable-voice-0
# Load packages #
library(searchConsoleR)
library(dplyr)
library(ggplot2)
library(writexl)
library(stringr)
# Authorize & choose Google profile #
scr_auth()
@zldoty
zldoty / quick-check.py
Created July 8, 2021 17:02 — forked from ameesters/quick-check.py
A python script that checks multiple websites status.
View quick-check.py
#!/usr/bin/env python
import os, time, httplib
from termcolor import colored
SITES = [
"www.meesters-id.nl",
"www.carolsingers.nl",
]
while 1:
@zldoty
zldoty / searchconsoler-search_analytics-databydatebypage-v0.r
Created November 27, 2020 13:38
searchconsoler-search_analytics-databydatebypage-v0
View searchconsoler-search_analytics-databydatebypage-v0.r
# Load packages
library(searchConsoleR)
library(dplyr)
library(ggplot2)
library(writexl)
# Authorize & choose Google profile
scr_auth()
# Specify website --- CLIENT
@zldoty
zldoty / searchconsoler-add_sitemap_mechanical.r
Last active November 27, 2020 13:33
searchconsoler-add_sitemap_mechanical
View searchconsoler-add_sitemap_mechanical.r
# Load packages
library(searchConsoleR)
library(dplyr)
library(ggplot2)
# Authorize & choose Google profile
scr_auth()
# Specify website --- FULL URL
website <- "https://sample.com"
@zldoty
zldoty / chrome_headless_screenshot.py
Created October 7, 2019 20:04 — forked from rverton/chrome_headless_screenshot.py
Make a screenshot with a headless google chrome in python
View chrome_headless_screenshot.py
# Install chromedriver from https://sites.google.com/a/chromium.org/chromedriver/downloads
import os
from optparse import OptionParser
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
CHROME_PATH = '/usr/bin/google-chrome'