A ruby SVG scraper: saves to file SVG content found in a given URL, no matter if static or dynamically generated.
Ruby JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
lib
resources
test/scrapevg
.gitignore
Gemfile
LICENSE
README
Rakefile
scrapevg.gemspec

README

Scrapevg is a simple tool for scraping SVG images from web pages and save them
to file.
It uses PhantomJS for rendering web pages, thus being able to scrape SVG images
generated client side.

Sample usage:

$> scrapevg http://www.example.com/page-with-svg-images.html /directory/where/to/save/svg/files

The software is not yet submitted as a gem, so to run it in the meantime please install phantomjs and the gems phantomjs.rb and nokogiri, then type:

$> cd /your/scrapevg/directory
$> ruby -Ilib bin/scrapevg <web page url> <target directory>

This software is licensed under the MIT License.

Reza Spagnolo