Skip to content

A ruby SVG scraper: saves to file SVG content found in a given URL, no matter if static or dynamically generated.

License

Notifications You must be signed in to change notification settings

sparez/scrapevg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 

About

A ruby SVG scraper: saves to file SVG content found in a given URL, no matter if static or dynamically generated.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published