phantombuster / nickjs

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

Allow changing NickJS options after the initial constructor #17

Closed Leftium closed 6 years ago

Leftium commented 6 years ago

Please enable changing NickJS options after the initial constructor. Specifically, I would like to modify:

Motivation: I would like to use a special configuration just when logging in

paps commented 6 years ago

Hi Leftium, sorry for the delay.

This is not officially supported but you can do nick.options.loadImages = false and similar. This will only work on new tabs, so close your tab with tab.close() and open a new one. It should use the new options. Don't worry, cookies are kept between tabs.

Can you confirm this works? Thanks