添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
寂寞的数据线  ·  Scrolling with ...·  3 周前    · 
奔放的楼房  ·  使用Google Chrome ...·  3 小时前    · 
阳刚的核桃  ·  AIGC工具导航 | ...·  5 月前    · 
耍酷的四季豆  ·  Graph Embedding总结 - ...·  7 月前    · 
多情的啄木鸟  ·  MFC-L2770DW | Brother 台灣·  7 月前    · 

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.