Skip to content

An R' 📦 to deal with XML sitemaps and help SEO

Notifications You must be signed in to change notification settings

pixgarden/xsitemap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xsitemap

Description

This R' package aim to ease the work with XML sitemap and SEO related tasks. Tutorials will come later

Install

#Github (dev version)
library(devtools)
devtools::install_github("pixgarden/xsitemap")

Getting started

load xsitemap package

library(xsitemap)

xsitemap Functions

1. xsitemapGet()

This is the main function. Add domain hostname or an XML URL as a parameter

xsitemap_urls <- xsitemapGet("https://www.nationalarchives.gov.uk/")

2. xsitemapCheckHTTP()

Will check if sitemap urls are sending 200 http code.Beware it can take some time depending on the number of URLs

xsitemap_urls_http <- xsitemapCheckHTTP(xsitemap_urls)

3. xsitemapGuess.R()

Will try to guess XML Urls in this order:

sitemap_index.xml, sitemaps.xml, sitemap.xml, sitemap-index.xml", sitemap.xml.gz

4. xsitemapGetFromRobotsTxt()

Will search for xml sitemap URL inside robots.txt

5. xsitemapCheckWordpress()

Will check classic Wordpress sitemap urls

Tutorials

/!\ Work in progress /!\

English : https://www.gokam.co.uk/xsitemap-package/

French : https://www.gokam.fr/xsitemap/

Feedbacks

Questions and feedbacks welcome!

You want to contribute ? Open a pull request ;-) If you encounter a bug or want to suggest an enhancement, please open an issue.

  • François

About

An R' 📦 to deal with XML sitemaps and help SEO

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages