Comments (7)
from monolith.
Hi Howard,
it might've been a bug that slipped in one of the earlier versions. Could you please git pull
the latest version and try it again?
from monolith.
Hi,
O.K. I just did that.
I still get the same error message (as above).
Howard
from monolith.
You may need to run cargo install --path . -f
to build the latest version and then overwrite the previous local installation of monolith. I was able to save the page you mentioned above using the latest version, here's my output:
$ monolith -V
monolith 2.0.14
$ monolith https://www.nytimes.com/2019/08/25/world/europe/g7-iran-trump-biarritz.html > test.html
[ https://www.nytimes.com/2019/08/25/world/europe/g7-iran-trump-biarritz.html ]
[ https://www.nytimes.com/vi-assets/static-assets/favicon-4bf96cb6a1093748bf5b3c429accb9b4.ico ]
[ https://www.nytimes.com/vi-assets/static-assets/apple-touch-icon-319373aaf4524d94d38aa599c56b8655.png ]
[ https://www.nytimes.com/vi-assets/static-assets/global-42db6c8821fec0e2b3837b2ea2ece8fe.css ]
[ https://static01.nyt.com/images/2019/08/25/world/25G7-iran-1/merlin_159699912_13079c6d-a173-4b31-9a46-efefd28f9360-articleLarge.jpg?quality=75&auto=webp&disable=upscale ]
[ https://static01.nyt.com/images/2019/08/25/world/25G7-iran-2/merlin_159700404_88347fa3-6716-4ae0-a567-8bebece14794-articleLarge.jpg?quality=75&auto=webp&disable=upscale ]
[ https://www.nytimes.com/vi-assets/static-assets/adslot-c6ffe1b749add526a06c.js ]
[ https://www.nytimes.com/vi-assets/static-assets/vendor-3389f9c978bdc7cb443c.js ]
[ https://www.nytimes.com/vi-assets/static-assets/story-b70297033149b8af8853.js ]
[ https://www.nytimes.com/vi-assets/static-assets/main-e2538404741407daf3c0.js ]
[ https://www.googletagmanager.com/gtm.js?id=GTM-P528B3>m_auth=tfAzqo1rYDLgYhmTnSjPqw>m_preview=env-130>m_cookies_win=x ]
from monolith.
I would recommend using the -j
flag before the URL to save the page without scripts, as it seems like NYT attempts to display some modal/overlay upon page load (to sell some paid subscription or something like that).
from monolith.
from monolith.
Sure! To update to the latest version this should do the trick:
cd monolith
git pull
cargo install --force --path .
After doing that, this should save the page and render it as a readable document while offline:
monolith -j https://www.nytimes.com/2019/08/25/world/europe/g7-iran-trump-biarritz.html > test.html
Please let me know if it worked for you.
from monolith.
Related Issues (20)
- Use sitemap to download cohesive full site? HOT 2
- JS module imports not captured HOT 3
- Outdated Project Reference in README HOT 2
- The page you need to log in cannot be saved after logging in HOT 1
- whole progress failed caused by get favicon.ico HOT 1
- Unicode mangling
- [Feature request] Simple way to permanently store and use Blacklist of domains HOT 13
- [Bug] Data URLs exceed length limits HOT 8
- Incomplete output on broken HTML like https://distrowatch.com/table.php?distribution=void HOT 5
- Save apple-touch-icon too HOT 3
- "https://mp.weixin.qq.com" web title and CSS switch image on click not work
- How to get just HTML, no <script> HOT 1
- Additionally fetch dynamic content HOT 3
- [proposal] An option to remove alternative sources for media urls HOT 1
- HTML page content partially invisible HOT 2
- Site doesnt work HOT 1
- download path ? HOT 1
- Site doesn't work, redirected towards ct.captcha-delivery.com HOT 1
- What's the default location sites are being saved to? HOT 3
- Relax glibc version requirement HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from monolith.