Skip to content

Instantly share code, notes, and snippets.

@zldoty
Last active November 27, 2020 13:33
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
searchconsoler-add_sitemap_mechanical
# Load packages
library(searchConsoleR)
library(dplyr)
library(ggplot2)
# Authorize & choose Google profile
scr_auth()
# Specify website --- FULL URL
website <- "https://sample.com"
# Submit all manually found sitemaps
add_sitemap("https://www.sample.com","https://www.sample.com/sitemap_index.xml")
sys.sleep(1)
add_sitemap("https://www.sample.com","https://www.sample.com/page-sitemap.xml")
sys.sleep(1)
add_sitemap("https://www.sample.com","https://www.sample.com/post-sitemap.xml")
sys.sleep(1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment