astefanutti / decktape

PDF exporter for HTML presentations
MIT License
2.18k stars 175 forks source link

How to use Decktape for a website that requires username / password #212

Open MiguelSL65 opened 4 years ago

MiguelSL65 commented 4 years ago

Hello there!

I want to convert a presentation (which I dont have the source code) to pdf.

When I write in command line: node decktape automatic http://somewebsite.com/page.html slides.pdf

I get this error: Failed to load resource: the server responded with a status of 401 (Unauthorized) Loading page finished with status: 401 No supported DeckTape plugin detected, falling back to generic plugin Generic plugin activated

I think this is happening because to access the website's slides I need a username and password (Which I have!).

Can anybody throw some help?

Cheers.

MiguelSL65 commented 4 years ago

The pdf is genarated, but with the same error message (401 unauthorized).

astefanutti commented 4 years ago

This is not supported currently. That being said, I think it should be quite straightforward to implement:

I'd be happy to integrate that enhancement into Decktape.

MiguelSL65 commented 4 years ago

@astefanutti Nice to hear that!

I will be waiting for that feature.

Is it possible to get some kind of notification when its complete?

Thanks :)

astefanutti commented 4 years ago

@MiguelSL65

Is it possible to get some kind of notification when its complete?

You can subscribe to the issue.

Also we welcome PRs :)

MiguelSL65 commented 4 years ago

@astefanutti How is this progressing?

Unfortunately I dont have knowledge in CLI programming. So there's no PR for me :(

astefanutti commented 4 years ago

@MiguelSL65 we'll work on it ASAP. You can subscribe to the issue so that you'll get notify as soon as we progress on this.

chnchg commented 11 months ago

It seems that adding username and password to URL, for example,

https://username:password@somewebsite.com/page.html

works for HTTP basic authentication.