Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var APISinaEconomicTarget = "" /* 127-byte string literal not displayed */
APISinaEconomicTarget 新浪财经宏观经济指标接口
View Source
var APISinaTargetForex = "https://hq.sinajs.cn/rn=0list=fx_s"
APISinaTargetForex 新浪财经指标`外汇指标`数据获取接口
View Source
var APISinaTargetForexShow = "https://finance.sina.com.cn/money/forex/hq/%s.shtml"
APISinaTargetForexShow 新浪财经指标`外汇指标`页面展示接口
Functions ¶
func SpiderSinaEconomicTarget ¶
func SpiderSinaEconomicTarget(sourceTargetCodeSpider, targetCode string, pages int) (responses []model.Response)
SpiderSinaEconomicTarget 爬取新浪财经宏观指标 适用指标: - 地区居民消费价格指数
- 页面展示接口:http://finance.sina.com.cn/mac/#price-2-0-31-1
- 数据获取接口:https://quotes.sina.cn/mac/api/jsonp_v3.php/SINAREMOTECALL/MacPage_Service.get_pagedata?cate=price&event=2&from=1&num=31&condition=
- 地区生产总值
func SpiderSinaTargetForex ¶
SpiderSinaTargetForex 爬取"新浪财经"网站的`外汇指标` 适用指标: - 人民币汇率
- 页面展示接口:https://finance.sina.com.cn/money/forex/hq/CNYUSD.shtml
- 数据获取接口:https://hq.sinajs.cn/rn=0list=fx_scnyusd
- 数据获取接口携带的请求头
- Referer: https://finance.sina.com.cn/money/forex/hq/CNYUSD.shtml
- 人民币港元
- 页面展示接口:https://finance.sina.com.cn/money/forex/hq/CNYHKD.shtml
- 数据获取接口:https://hq.sinajs.cn/rn=0list=fx_scnyhkd
- 数据获取接口携带的请求头
- Referer: https://finance.sina.com.cn/money/forex/hq/CNYHKD.shtml
- 人民币日元
- 页面展示接口:https://finance.sina.com.cn/money/forex/hq/CNYJPY.shtml
- 数据获取接口:https://hq.sinajs.cn/rn=0list=fx_scnyjpy
- 数据获取接口携带的请求头
- Referer: https://finance.sina.com.cn/money/forex/hq/CNYJPY.shtml
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.