Skip to content
An R' 📦 to deal with XML sitemaps and help SEO
R
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
R
man
tests
vignettes
.Rbuildignore
.Rhistory
.gitignore
DESCRIPTION
NAMESPACE
README.md
xsitemap.Rproj
xsitemap_history.R

README.md

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
You can’t perform that action at this time.