Website using DataDome gets captcha blocked while scraping using Selenium and Python

前端 未结 2 1626
猫巷女王i
猫巷女王i 2020-12-12 04:10

I\'m actually trying to scrape some car datas from different websites, i\'ve been using selenium with chromebrowser but some websites actually block selenium with captcha va

2条回答
  •  清歌不尽
    2020-12-12 05:13

    It could be happening due to a myriad of reasons. Try going through the answer here that gives someway in you can prevent this problem.

    A simple solution that worked for me sometimes is to use Waits/Sleep calls in selenium, see here from the docs about Waits. Or sleep calls can be done like so

    Import time
    time.sleep(2)
    

提交回复
热议问题