New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

sitemaped

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sitemaped

  • 0.1.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Sitemaped

Sitemaped is a powerful parser for XML sitemaps which respects all sitemaps listed in robots.txt and handles gziped and nested sitemaps as well.

Features

  • Respects sitemaps listed in robots.txt
  • Handles gziped sitemaps
  • Supports nested sitemaps (sitemap of sitemaps)

Installation

With Bundler

Just add to your Gemfile

gem 'sitemaped'

Without Bundler

If you're not using Bundler just execute on your commandline

$ gem install sitemaped

Usage

Get a list of all URLs covered by the sitemap(s)

require 'sitemaped'

website = Sitemaped.new('http://www.example.com')
sitemap = website.sitemap  # => ["http://www.example.com/", "http://www.example.com/contact", ...]

Check whether an URL is covered by the sitemap

require 'sitemaped'

sitemap = Sitemaped.new('http://www.example.com')
sitemap.include?('http://www.example.com/contact') # => true or false

Todo

  • Add tests

FAQs

Package last updated on 03 Jul 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc