Skip to content

Instantly share code, notes, and snippets.

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