直接使用pandas即可。
首先要安装pandas和beautifulsoup4,接着编写以下代码即可获取网页表格内容为dataframe。
阅读全文