Lurker News

Comments (209) 36 threads

Earlier comments
makach1 reply#
Ahh, to me it looks like it creates an amalgamation of the web page+contents.

How does this work on neverending webpages/forever scroll? How will it behave if you need to authenticate before browsing the page?

flatroze1 reply#
That's it in the nutshell!

It seems to work for basic pages quite well, I think that lazy load will work for most pages as long as the JavaScript is embedded (no -j flag provided) and the Internet connection is on. It saves what's there when the page is loaded, the rest is a gamble since every website implements infinite scroll differently.
Authentication is another tricky part -- it's different for every browser. I will try to convert it into a web extension of sorts, so that pages could be saved directly from the browser while the user is authenticated.

donatzsky1 reply#
For authentication, you could add an option for passing http headers, as well as accept Netscape-style cookie files.

Whenever I want to download a video, using YouTube-dl, from a site that requires authentication, I first login using my browser and then exports the cookies using an extension.

sah2ed#
May I ask what extension you use for cookie exporting?
jplayer012 replies#
Ah, I've been thinking about making something like this. You beat me to it. I've been using the SingleFile add-on until now. I'll definitely give this a try.
flatroze#
Uh, I'm sorry. Please feel free to open PRs to that repo if you have anything to add or improve.
lucasverra1 reply#
super project ! i ve pretty baffled with the difficulty to save a webpage in proper format. I’ve tried with PDF converter, getPolaroid app and of course firefox screen shot feature for the entire scroll thing. Will try this for saving purposes.

I am also interested in cloning/forking sites for modification purposes, I will feedback you on the results four my consulting gigs

flatroze#
Thank you for the kind words.

It will evolve into a reliable tool in a couple weeks and it should eventually work for embedding everything, including things like web fonts and @url()'s within CSS. If anything doesn't work, please open an issue, I have plenty of time to work on it.

sankalp210691#
This is pretty useful. It would be great to have a functionality of converting the HTML page to a PDF as well.

Load more comments