sparez / scrapevg

A ruby SVG scraper: saves to file SVG content found in a given URL, no matter if static or dynamically generated.
MIT License
1 stars 0 forks source link

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

This software is licensed under the MIT License.

Reza Spagnolo