Skip to content

Latest commit

History

History
70 lines (40 loc) 路 1.33 KB

README.md

File metadata and controls

70 lines (40 loc) 路 1.33 KB

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