Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could someone please suggest, is it possible to get data if the website requires login? #180

Open
Renian1 opened this issue Nov 14, 2019 · 3 comments
Labels

Comments

@Renian1
Copy link

Renian1 commented Nov 14, 2019

Could someone please suggest, is it possible to get data if the website requires login?

@rt3norio
Copy link

need it too. +1

@tlenex
Copy link
Contributor

tlenex commented Oct 26, 2020

I think, if it's basic auth, then you can just visit html with the URL like: http://LOGIN:[email protected]/path.

For modern auth solutions, currently the HTML can be downloaded manually (File -> Save as... in the browser) and then crawled from your filesystem.
No credentials in header/cookie support currently AFAIK.

@coderitual
Copy link
Collaborator

coderitual commented Oct 28, 2020

hey @Renian1 @rt3norio , borwser injecting is out of the scope of html-sketchapp. You have full freedom what tool you gonna use to obtain page.

The best idea would be to look at examples usage here: https://github.com/html-sketchapp/html-sketchapp-example
Or even take a look on our internal usage here: https://github.com/brainly/html-sketchapp-style-guide

In above examples we're using puppeteer to control borwser window and inject our script (which in turn uses html-sketchapp lib) into that window. Because puppeteer allows controlling browser window you can easily use its api to login to desired page and obtain document/html node for further processing using html-sketchapp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants