python用akshare批量爬取数据并保存为excel格式
爬取的网站为http://vip.stock.finance.sina.com.cn/mkt/#hs_a的历史数据
首先,确定好你 下载好了第三方模块akshare
下载代码:
pip install akshare -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host=mirrors.aliyun.com --upgrade
然后,创建一个名为aa的txt文件,文件内容为