Open lazybotter opened 4 years ago
You mean something like: cluster.queueForWorker(0, data)
.
This sounds like an interesting feature. But it's currently not supported.
Im not sure, would something like cluster.queueWithBrowserOptions(data,taskFunction,browserOptions)
work?
Or add another prop to cluster.queue(data,taskFunction,browserOptions)
then if "CONCURRENCY_BROWSER" is used, "pupeteerOptions" can be defined for each task in the queue.
Thanks
would be really great if we could get browserOptions here, is it in the works ?
+1
+1 , i need to that!
+1
+1
+1
+1
+1
Hi,
I am trying to create an application that will run multiple instances of puppeteer, each instance will have its own proxy. The new "perBrowserOptions" is good but how can I set the proxy based on the Taskfunction that has been queued when using "CONCURRENCY_BROWSER"?
Here is an example to try and explain what i mean...
`const {Cluster} = require('puppeteer-cluster');
(async ()=>{
})();`
I just can't work out how i can set the proxy per browser launch to match the account that is fetched/queued...
Hope some of that made sense, thanks!