我正在抓取数据from this URL。这是我的代码:
from selenium import webdriver
import os
import time
chrome_driver = os.path.abspath(os.path.dirname(__file__)) + '/chromedriver'
browser = webdriver.Chrome(chrome_driver)
browser.get("https://angel.co/companies?locations[]=1688-United+States")
time.sleep(3)
data_row = browser.find_elements_by_class_name('base.startup')
for item in data_row:
print('-'*100)
company = item.find_element_by_class_name('name').text
location = item.find_element_by_class_name('column.location').text
print(company)
print(location)
有人可以帮我吗?我正在使用Windows 10。