D
D
dfhkjhg2020-09-30 13:43:26
Node.js
dfhkjhg, 2020-09-30 13:43:26

Is it possible to bypass cloudflare protection on selenium?

There is a site that was parsed using puppeteer, but today for some reason it stopped working and instead of loading the site after a 5 second check, the 5 second check started again.
I tried to visit the site on selenium, the same problem. Can this be fixed somehow?

const { Builder, By, Key, until, WebDriver } = require('selenium-webdriver');
const chrome = require('selenium-webdriver/chrome')

const options = new chrome.Options()

options.addArguments('--disable-dev-shm-usage')
options.addArguments('--no-sandbox') 
options.addArguments("--disable-extensions")
options.addArguments("--disable-gpu")

;(async() => {
  let driver = await new Builder().forBrowser('chrome').build();
  
  try {
    await driver.get('http://www.google.com/');
    
  } finally {
    // await driver.quit();
  }
})();

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
nonama11, 2020-10-03
@nonama11

A similar problem only with selenium, started on September 29th. It was partially solved. I found a website domain that is not protected by cloudflare "i'm under attack"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question