phantombuster / nickjs

Web scraping library made by the Phantombuster team. Modern, simple & works on all websites. (Deprecated)
https://nickjs.org
ISC License
500 stars 48 forks source link

Electron Possibilities #33

Open klaussa opened 6 years ago

klaussa commented 6 years ago

Can nick run inside an existing running electron instance and use the api to control it? If so, how would the configuration look like ?

paps commented 6 years ago

It's technically possible to do this if you have a running Chrome process with its remote debugging port open and listening (so that the DevTools protocol can be used). I'm not very familiar with Electron, I don't know if that is possible in the context of an Electron process.

However, in any case, NickJS' constructor does not yet support specifying an already running Chrome instance as target. NickJS always starts a fresh Chrome process which is not what we want in this case... I'll get to adding this feature eventually. In the meantime, PRs welcome! :)