![38% of CISOs Fear They’re Not Moving Fast Enough on AI](https://cdn.sanity.io/images/cgdhsj6q/production/faa0bc28df98f791e11263f8239b34207f84b86f-1024x1024.webp?w=400&fit=max&auto=format)
Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Build painfree sitemaps for websites with millions of pages
MassiveSitemap is a successor project of BigSitemap, a Sitemap generator for websites with millions of pages. It implements various generation stategies, e.g. to split large Sitemaps into multiple files, gzip files to minimize bandwidth usage, or incremental updates. Its API is very similar to BigSitemap, can be set up with just a few lines of code and is compatible with just about any framework.
A simple usecase which fits most of the standard scenarios. This example adds http://test.com/about
to the sitemap.
require 'massive_sitemap'
index_url = MassiveSitemap.generate(:url => 'test.com') do
add "/about"
end
MassiveSitemap.ping(index_url)
This example itterates of the User
resource and adds each with a change_frequency
, last_modified
and priority
to the sitemap. In case there are more than 50.000 users, the sitemap will be auto-split in multiple files.
require 'massive_sitemap'
index_url = MassiveSitemap.generate(:url => 'test.com') do
User.all do |user|
add "/users/#{user.id}", :change_frequency => 'weekly', :last_modified => user.updated_at, :priority => 0.9
end
end
MassiveSitemap.ping(index_url)
MassiveSitemap is structured in two major parts: Builder
and Writer
. Both offer an abstract interface which is tailored to the specific needs.
Builder
keeps all the sitemap structure related logic to build the XML data. Builder::Index
does the similar for the index structure. Builder::Rotation
is an extension to make sure no more than 50k urls are written per files, according to sitemap specs.
The Writer
takes care of the storage. At top level, that's just a string (Writer::String
), however Writer::File
stores to files, Writer::GzipFile
gzips it as well. Writer
keeps the state of the files and implements various strategies how to update the files.
Further extension and customization can easily be done, e.g. a Writer::S3
extenstion stores the sitemap files to Amazon S3 .
We'll check out your contribution if you:
We'll do our best to help you out with any contribution issues you may have.
The license is included as LICENSE in this directory.
FAQs
Unknown package
We found that massive_sitemap demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.