所需工具:
Python
聪明的大脑文章源自灵鲨社区-https://www.0s52.com/bcjc/pythonjc/7308.html
勤劳的双手文章源自灵鲨社区-https://www.0s52.com/bcjc/pythonjc/7308.html
文章源自灵鲨社区-https://www.0s52.com/bcjc/pythonjc/7308.html
注意:本站只提供教程,不提供任何成品+工具+软件链接,仅限用于学习和研究。文章源自灵鲨社区-https://www.0s52.com/bcjc/pythonjc/7308.html
文章源自灵鲨社区-https://www.0s52.com/bcjc/pythonjc/7308.html
教程如下:
源码文章源自灵鲨社区-https://www.0s52.com/bcjc/pythonjc/7308.html
import requests
import json
import os
from prettytable import PrettyTable
import time文章源自灵鲨社区-https://www.0s52.com/bcjc/pythonjc/7308.html
fundlist = ['163817','161017','003860']文章源自灵鲨社区-https://www.0s52.com/bcjc/pythonjc/7308.html
def GetFundJsonInfo(fundcode):
url = "http://fundgz.1234567.com.cn/js/"+fundcode+".js"
response = requests.get(url)
fundDataInfo = response.text.split('({')[1]
fundDataInfo = '{'+ fundDataInfo.split('})')[0] + '}'
fundDataInfo = json.loads(fundDataInfo)
return fundDataInfo
评论