-
-
Notifications
You must be signed in to change notification settings - Fork 106
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
library not working in electron app #110
Comments
Hello @YourSocialBot This module uses puppeteer (runs a headless browser process) to scrape web pages. You will need to do some additional setup on your server(s) to make this module work: As for running from an electron app, that I have never tried. Please try to run your electron app with the following environment variable:
Errors related to the browser/puppeteer usage should then be printed to the console. |
Hey, thanks for the fast response! |
This only works for me if I run the unpackaged app. |
I think it is possible to set environment variables for the packaged app and then check the log files. |
FWIW there is a package puppeteer-in-electron which allows us to use an electron browser window in the running electron app as the puppeteer runner. Not exactly the same, but I needed to run puppeteer in Electron and was able to solve it with that library. You can see how I solved it here: Maybe |
The library works for me if I run my app via console but after packaging the electron app it wont anymore. Same for servers I am not able to run the library on servers.
The text was updated successfully, but these errors were encountered: