添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
微笑的水桶  ·  Selenium ...·  3 天前    · 
坏坏的牛排  ·  Selenium chrome ...·  6 天前    · 
旅行中的包子  ·  SpringBoot Tomcat部署 - ...·  1 月前    · 
成熟的皮蛋  ·  Spark源码学习笔记(二)·  2 月前    · 
幸福的梨子  ·  No connection module ...·  3 月前    · 

I have plane to go your paid plan but before go your paid plan I am checking everything will be perfect for me. getting this error while running my code:

selenium.common.exceptions.WebDriverException: Message: unknown error: Chrome failed to start: exited abnormally   (unknown error: DevToolsActivePort file doesn't exist)   (The process started from chrome location /usr/bin/chromium-browser is no longer running, so ChromeDriver is assuming that Chrome  has crashed.)   (Driver info: chromedriver=2.42.591071 (0b695ff80972cc1a65a5cd643186d2ae582cd4ac),platform=Linux
5.4.0-1020-aws x86_64)

I used one of your whitelisted domain. I upgraded selenium through your bash shell. Here is my full code :

from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from bs4 import BeautifulSoup
import time
option = Options()
driver = webdriver.Chrome('chromedriver',options=option)
for i in range(10):
    r = driver.get('https://www.amocrm.com/')
    soup = BeautifulSoup(driver.page_source, "lxml")
    time.sleep(5)
    text =  soup.select('.feature__header')[0].text
    print(f'text : {text}')
    driver.quit()
              

after add Firefox get this error

selenium.common.exceptions.WebDriverException: Message: 'geckodriver' executable needs to be in PATH.

here is my edited code:

from selenium import webdriver
from bs4 import BeautifulSoup
import time
driver = webdriver.Firefox('/home/farhan1360')
for i in range(10):
    r = driver.get('https://www.amocrm.com/')
    soup = BeautifulSoup(driver.page_source, "lxml")
    time.sleep(5)
    text =  soup.select('.feature__header')[0].text
    print(f'text : {text}')
    driver.quit()
        Sorry, we have had to rate-limit your feedback sending.
Please try again in a few moments... Thanks for the feedback! Our tireless devs will get back to you soon.