2019-08-25 06:06:48 +00:00
[![Travis CI Build Status ](https://travis-ci.org/Y2Z/monolith.svg?branch=master )](https://travis-ci.org/Y2Z/monolith)
2019-09-22 00:06:00 +00:00
[![AppVeyor Build status ](https://ci.appveyor.com/api/projects/status/ae7soyjih8jg2bv7/branch/master?svg=true )](https://ci.appveyor.com/project/snshn/monolith/branch/master)
2019-10-08 03:46:08 +00:00
```
___ ___________ __________ ___________________ ___
| \ / \ | | | | | |
| \_/ __ \_| __ | | ___ ___ |__| |
| | | | | | | | | | | |
| |__| _ |__| |____| | | | | __ |
| |\_/| | \ | | | | | | |
|___| |__________| \____________________| |___| |___| |___|
```
2019-08-24 17:51:37 +00:00
2020-01-21 01:48:34 +00:00
A data hoarder's dream come true: bundle any web page into a single HTML file. You can finally replace that gazillion of open tabs with a gazillion of .html files stored somewhere on your precious little drive.
2017-02-20 07:51:24 +00:00
2019-08-25 21:28:46 +00:00
Unlike the conventional "Save page as", `monolith` not only saves the target document, it embeds CSS, image, and JavaScript assets **all at once** , producing a single HTML5 document that is a joy to store and share.
2017-02-20 07:51:24 +00:00
2019-08-25 21:28:46 +00:00
If compared to saving websites with `wget -mpk` , this tool embeds all assets as data URLs and therefore lets browsers render the saved page exactly the way it was on the Internet, even when no network connection is available.
2017-02-20 07:51:24 +00:00
2020-03-05 10:15:13 +00:00
---------------------------------------------------
2020-03-03 04:56:17 +00:00
2019-12-13 00:27:26 +00:00
## Installation
2017-02-20 07:51:24 +00:00
2020-03-05 10:11:54 +00:00
#### From source
2019-08-23 03:17:15 +00:00
$ git clone https://github.com/Y2Z/monolith.git
$ cd monolith
2020-02-14 04:47:30 +00:00
$ make install
2017-02-20 07:51:24 +00:00
2020-03-05 10:11:54 +00:00
#### With Homebrew (on macOS and GNU/Linux)
2019-12-13 00:27:26 +00:00
$ brew install monolith
2020-03-05 10:11:54 +00:00
#### Using Snapcraft (on GNU/Linux)
2020-01-14 08:42:04 +00:00
$ snap install monolith
2020-03-05 10:11:54 +00:00
#### Via Docker
2020-03-14 16:51:05 +00:00
The guide can be found [here ](docs/containers.md )
2020-03-03 04:56:17 +00:00
2020-03-05 10:15:13 +00:00
---------------------------------------------------
2020-03-03 04:56:17 +00:00
2019-12-13 00:27:26 +00:00
## Usage
2020-01-21 01:48:34 +00:00
$ monolith https://lyrics.github.io/db/P/Portishead/Dummy/Roads/ -o portishead-roads-lyrics.html
2017-02-20 07:51:24 +00:00
2020-03-05 10:15:13 +00:00
---------------------------------------------------
2020-03-03 04:56:17 +00:00
2019-12-13 00:27:26 +00:00
## Options
2019-09-22 00:06:00 +00:00
- `-c` : Ignore styles
2020-02-24 05:06:31 +00:00
- `-f` : Exclude frames and iframes
2019-08-23 09:15:21 +00:00
- `-i` : Remove images
2020-02-15 06:33:20 +00:00
- `-I` : Isolate the document
2019-08-23 10:09:32 +00:00
- `-j` : Exclude JavaScript
2019-08-27 03:17:36 +00:00
- `-k` : Accept invalid X.509 (TLS) certificates
2019-12-26 05:41:03 +00:00
- `-o` : Write output to file
2019-08-25 15:41:30 +00:00
- `-s` : Silent mode
2020-02-12 13:38:08 +00:00
- `-t` : Set custom network request timeout
2020-02-15 06:33:20 +00:00
- `-u` : Provide own User-Agent
2017-02-20 07:51:24 +00:00
2020-03-05 10:15:13 +00:00
---------------------------------------------------
2020-03-03 04:56:17 +00:00
2020-01-21 04:02:45 +00:00
## HTTPS and HTTP proxies
2020-02-03 05:38:21 +00:00
Please set `https_proxy` , `http_proxy` , and `no_proxy` environment variables.
2020-01-21 04:02:45 +00:00
2020-03-05 10:15:13 +00:00
---------------------------------------------------
2020-03-03 04:56:17 +00:00
2020-01-21 01:48:34 +00:00
## Contributing
Please open an issue if something is wrong, that helps make this project better.
2020-03-05 10:15:13 +00:00
---------------------------------------------------
2020-03-03 04:56:17 +00:00
2019-12-13 00:27:26 +00:00
## Related projects
2020-01-21 01:48:34 +00:00
- `Monolith Chrome Extension` : https://github.com/rhysd/monolith-of-web
2019-10-07 11:57:02 +00:00
- `Pagesaver` : https://github.com/distributed-mind/pagesaver
2020-01-21 01:48:34 +00:00
- `Personal WayBack Machine` : https://github.com/popey/pwbm
2019-10-07 11:57:02 +00:00
2020-03-05 10:15:13 +00:00
---------------------------------------------------
2020-03-03 04:56:17 +00:00
2019-12-13 00:27:26 +00:00
## License
2019-08-23 03:17:15 +00:00
The Unlicense
2020-03-05 10:15:13 +00:00
---------------------------------------------------
2020-03-03 04:56:17 +00:00
2019-08-23 03:17:15 +00:00
<!-- Microtext -->
< sub > Keep in mind that `monolith` is not aware of your browser's session</ sub >