用pandas的read_html()方法
for table in pd.read_html(url):
table.to_csv(path, mode='a',encoding='utf-8',header=0,index=False)
一个页面的多个表格都写入csv文件
用pandas的read_html()方法
for table in pd.read_html(url):
table.to_csv(path, mode='a',encoding='utf-8',header=0,index=False)
一个页面的多个表格都写入csv文件