Leveraging the phantom-crowbar to steal vector graphics, on the daily
✓ Published0🌍 Public
Aandyreagan
Last edited Sep 26, 2014
Created on Sep 26, 2014
This daily automation script scrapes a suite of hedonometer.org visualizations—including time series, shift plots, U.S. maps, state and city Sankey diagrams, and bar charts—using the phantom-crowbar tool to extract inline SVG from the live pages. It then converts each captured SVG file to PDF via Inkscape’s command-line interface. The data reflects daily sentiment scores from the hedonometer site, with separate outputs for books like Frankenstein and city comparisons between 2013 and 2014. The script relies on shell date utilities to name files by current date, demonstrating a repeatable pipeline for archiving web graphics.
AI-generated description