Spidergram is a customizable toolkit for crawling and analyzing complicated web properties. While it can be used to crawl any website, we (the folks at Autogram) designed it specifically for "ten websites in a trench coat" scenarios where a web property encompasses multiple CMSs, multiple domains, and multiple design systems, maintained by multiple teams.
node -v
.brew install arangodb
), or run it in a Docker container on most platforms. See the Data Model documentation for more details about what Spidergram stores and why.npm install -g spidergram
.cd
to the directory where'd you'd like to store crawl data (temp files, downloads, generated reports, etc).spidergram status
to ensure it can find your ArangoDB server.spidergram go https://some-web-site.biz
(or any number of URLs you'd like to treat as a single crawl). Watch the progress bar go; once it's complete it will analyze every page and generate a summary report.❯ spidergram status
SPIDERGRAM CONFIG
Config file: /Users/jeff/my-crawl/spidergram.config.json
ARANGODB
Status: online
URL: http://127.0.0.1:8529
Database: spidergram
❯ spidergram go https://my-website.biz
Crawling URLs
███████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 26% | ETA: 614s | 227/858
To re-run the crawl with different options, run spidergram go
with the --erase
flag. You can also use the subcommands spidergram crawl
, spidergram analyze
, and spidergram report
to perform each step individually.
The CLI Documentation includes additional details about Spidergram's subcommands and options. You can build custom reports, inspect individual URLs before crawling them, generate tree diagrams representing URL structures, and more.
To customize Spidergram's crawl behavior, analysis options, and report output, check the configuration documentation. You can generate a pre-built configuration with the standard options by running the spidergram init
command in your project directory.
To build your own custom NodeJS crawling and analysis tool on top of Spidergram's API, read the API docs. It'll be fun. You know you want to.
Large-scale inventory and analysis of web content is kind of hellish. Some automated tools focus on SEO, and treat spreadsheets as a dense storage medium rather than a tool to present specific views of the data. Programmer-friendly customizable web scraping toolkits are usually built to automate web APIs or extract specific targeted bits of data from others peoples' web sites (like grabbing a list of every product in an Amazon category, extracting job listings, etc.)
Autogram often works with companies that are trying to get a handle on their own huge web ecosystems. We needed: