from selenium import webdriver
chrome_driver=r"C:\Users\yandi\AppData\Local\Programs\Python\Python37-32\chromedriver.exe"
driver=webdriver.Chrome(executable_path=chrome_driver)
driver.get('https://36kr.com/')
driver.find_element_by_xpath('//*[@id="information"]').click()
typelist,authorlist,titlelist = [],[],[]
i = 1
while(True):
try:
type = driver.find_element_by_xpath(
'//div[@class="information-flow-list"]/div['+str(i)+']//span[@class="kr-flow-bar-motif"]/a').text
typelist.append(type)
author = driver.find_element_by_xpath(
'//div[@class="information-flow-list"]/div['+str(i)+']//a[@class="kr-flow-bar-author"]').text
authorlist.append(author)
title = driver.find_element_by_xpath(
'//div[@class="information-flow-list"]/div['+str