To add a collaborator to this project you will need to use the Relish gem to add the collaborator via a terminal command. Soon you'll be able to also add collaborators here!More about adding a collaborator
Simple static-site extraction, usable for any cache.manifest enabled site.
Piano Extraction is intended to be used as an extension of Piano, but for now Piano lack the ability to implement extensions.
Not published yet on rubygems.org.
Clone from repo and
Given a site with a cache manifest,
require "piano-extraction" # Instance the extractor extractor = Piano::Extraction::Extractor.new "http://example.com/" # Instruct it to search and fetch a cache.manifest extractor.use_manifest! # Download the cacheable files extractor.download_to "extraction/path"
I will download all files setted as cacheable in the target cache.manifest.
Piano Extraction also has extensions for the cache.manifest syntax in order to specify files to be left out, or not-cacheable files to be extracted anyway. For example:
CACHE MANIFEST: index # Extraction stop this_will_not_be_extracted NETWORK: # Nothing from here will be extracted since it is fetched from network updates # Extraction start # ...but these will be extracted because # Piano::Extraction is explicitly told to do so last
@ Xavier Via
GPL License, what else?
Last published almost 6 years ago by xaviervia.