Coder Social home page Coder Social logo

Comments (7)

howardm avatar howardm commented on August 19, 2024 1

from monolith.

snshn avatar snshn commented on August 19, 2024

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.

howardm avatar howardm commented on August 19, 2024

Hi,

O.K. I just did that.

I still get the same error message (as above).

Howard

from monolith.

snshn avatar snshn commented on August 19, 2024

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&gtm_auth=tfAzqo1rYDLgYhmTnSjPqw&gtm_preview=env-130&gtm_cookies_win=x ]

from monolith.

snshn avatar snshn commented on August 19, 2024

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.

howardm avatar howardm commented on August 19, 2024

from monolith.

snshn avatar snshn commented on August 19, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.