雪球网也是采用Ajax方式展示数据,我依然采用开发者工具查看其访问地址和返回数据. 访问使用到的库是jsoup,解析返回的json用的类库是jackson,二者的依赖是: 代码: 基类: 下载的数据: --2020年5月5日-- ...
def get xueqiu stock : headers X Requested With : XMLHttpRequest , Referer : http: xueqiu.com p ZH , User Agent : Mozilla . Windows NT . WOW rv: . Gecko Firefox . , Host : xueqiu.com , cookie : s iab ...
2020-06-11 18:58 0 565 推荐指数:
雪球网也是采用Ajax方式展示数据,我依然采用开发者工具查看其访问地址和返回数据. 访问使用到的库是jsoup,解析返回的json用的类库是jackson,二者的依赖是: 代码: 基类: 下载的数据: --2020年5月5日-- ...
雪球股票信息https://xueqiu.com/stock/f10/compinfo.json?symbol=SZ000501利润表https://stock.xueqiu.com/v5/stock/finance/cn/income.json?symbol=SH600900&type ...
...
...
1.接口 http://qt.gtimg.cn/q=sz000001 http://qt.gtimg.cn/q=sh600004 2.准备 MySQL数据库建表 3.python代码 ...
以五粮液为例,要获取最新行情,访问数据接口: http://qt.gtimg.cn/q=sz000858 返回数据: v_sz000858="51~五 粮 液~000858~27.78~27.60~27.70~417909~190109~227800~27.78~492~27.77~332 ...
import urllib.request import re codeUrl = 'https://hq.gucheng.com/gpdmylb.html' #获取股票代码 def codeTolist(): codeList = [] html ...
System; using System.Collections.Generic; using System.Linq; using System.Text; ...