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

Include Chromium #26

Open
HansLanger opened this issue Jan 22, 2019 · 0 comments
Open

Include Chromium #26

HansLanger opened this issue Jan 22, 2019 · 0 comments

Comments

@HansLanger
Copy link

Hello, what happen if I want to use Chromium to take picture from a website or use it with puppeteer?

How can I add the chromium files inside the apk file?.

I installed userLAnd/debian and installed this version of chromium and it works fine:

> wget http://security.debian.org/debian-security/pool/updates/main/c/chromium-browser/chromium_70.0.3538.110-1~deb9u1_arm64.deb

> sudo dpkg -i chromium_70.0.3538.110-1~deb9u1_arm64.deb

And then I just run
chrome --headless --disable-gpu --screenshot https://www.chromestatus.com/

or in node:

const { execSync } = require('child_process');
let stdout = execSync('chrome --headless --disable-gpu --screenshot https://www.chromestatus.com/');

and it generate the screenshot.png

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

1 participant