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

support for browserless? #51

Open
Colin-XKL opened this issue Nov 6, 2022 · 1 comment
Open

support for browserless? #51

Colin-XKL opened this issue Nov 6, 2022 · 1 comment

Comments

@Colin-XKL
Copy link

Suggestion: There's a popular headless browser project Browserless, it is very simple to use, maintaining independent puppeteer docker image maybe painful sometime, browserless is a good choice : )

Puppeteer allows you to specify a remote location for chrome via the browserWSEndpoint option. Setting this for browserless is a single line of code change.

Before

const browser = await puppeteer.launch();

After

const browser = await puppeteer.connect({ browserWSEndpoint: 'ws://localhost:3000' });

Docker Image home page

@damoeb
Copy link
Owner

damoeb commented Jun 9, 2023

The problem with prerendering (=browserless) are timeouts. One option would be to pass markup from browserless in the request, but then it would need to be via post and not get, which makes is less accessible. It could add a browserless option to feedless though

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

No branches or pull requests

2 participants