Y2Z / monolith

⬛️ CLI tool for saving complete web pages as a single HTML file

Home Page:https://crates.io/crates/monolith

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to get just HTML, no <script>

nikitavoloboev opened this issue · comments

Just ran monolith --no-css --no-images "https://github.com/teamhanko/hanko/blob/main/frontend/elements/README.md#css-shadow-parts"

And got back massive response

image

Where 70% of response is that <script> tag. I just need to get HTML, not sure how.

Thanks. 🖤

Hello Nikita,

I think --no-js is what you're looking for, it should remove all <script> tags as well. If the site very JS-heavy, try leveraging that Chrome-based pre-render trick described in the README, that should work.