Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- async function scraper() {
- //...
- // set the browser options
- const options = new firefox.Options().addArguments('--headless');
- // initialize the webdriver
- const driver = new Builder()
- .forBrowser('firefox')
- // add the proxy to the webdriver
- .setProxy(proxy.manual({
- http: proxyString,
- https: proxyString,
- }))
- .setFirefoxOptions(options)
- .build();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement