pu369com

【如何三行代码下载指定的股票或者基金数据到pandas中】用pandas做爬虫

 

import pandas

url="http://vip.stock.finance.sina.com.cn/quotes_service/view/cn_bill_sum.php?num=100&page=1&sort=totalvolpct&asc=0&volume=1000000&type=0&dpc=1"
df =pandas.read_html(url) 
print(df[2])

  

 

参考:https://blog.csdn.net/xueyang214/article/details/125556626

posted on 2023-06-09 18:07  pu369com  阅读(18)  评论(0编辑  收藏  举报

导航