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

Is it possible to change userAgent? #51

Closed msaus closed 5 years ago

msaus commented 5 years ago

Hello there,

I would like to change userAgent after initialization of Ncickjs.

What I found is following.

tab = await nick.newTab(); tab.driver.client.Network.setUserAgentOverride({"userAgent":userAgent});

Is this correct way to do?

regards,

paps commented 5 years ago

No need to go down to the driver level. Simply use the userAgent initialization parameter

https://hub.phantombuster.com/reference#nick

Cheers