Skip to content

Instantly share code, notes, and snippets.

@zldoty
Last active November 27, 2020 13:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zldoty/f0dd039bcf8e96e894f557366af6f474 to your computer and use it in GitHub Desktop.
Save zldoty/f0dd039bcf8e96e894f557366af6f474 to your computer and use it in GitHub Desktop.
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