property_crawling
如果您使用Google colab,则需要执行以下操作:
!pip安装Selenium
!wget &&解压缩chromedriver_linux64
安装Chrome,其驱动程序和Selenium
!apt-get update!apt安装chrome-chromedriver!cp / usr / lib / chromium-browser / chromedriver / usr / bin!pip安装Selenium
将选项设置为无头,..
从Selenium导入webdriver options = webdriver.ChromeOptions()options.add_argument('-headless')options.add_argument('-no-sandbox')options.add_argument('-disa