Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alveflo/rip.rb
Static web content ripper
https://github.com/alveflo/rip.rb
Last synced: 14 days ago
JSON representation
Static web content ripper
- Host: GitHub
- URL: https://github.com/alveflo/rip.rb
- Owner: alveflo
- License: mit
- Created: 2015-02-21T19:26:27.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-09-26T20:36:31.000Z (over 8 years ago)
- Last Synced: 2023-08-04T01:03:42.567Z (over 1 year ago)
- Language: Ruby
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# rip.rb
### What's this?
rip is a simple yet quite useful web site ripper, meaning that it copies the HTML document from a given URL with its referred resources (i.e. css- and js-links). The resources is copied and created with matching folders.### Note
This script is meant to be used to ease your work when creating a new website - i.e. to skip all the manual file copying.Don't use this to steal other peoples work.
### Usage
##### Arguments
`-u`/`--url` The web in which to copy
`-p`/`--path` The path in which to store the copied content##### Example
```
$ ruby rip.rb -u '' -p 'output'
```### Example
So let's say you want to copy the content of a web site with following html:
```
$ ruby rip.rb -u 'http://localhost/ninja/' -p 'output'
```
```html
Some page
```
Ripping the above will create an output as follows:
```
output/index.htm
output/css/bootstrap.min.css
output/css/style.css
output/js/bootstrap.min.js
output/js/jquery.min.js
output/js/super_cool_scripts/ninjascript.min.js
```### License
The MIT license