直接上一个html的demo <!doctype html> <html class="no-js fixed-layout"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>天气</title> </h…
新浪新闻API ustcmio 关注 2017.01.15 20:44* 字数 536 阅读 2479评论 2喜欢 7 新浪新闻的API:1.访问手机新浪网https://sina.cn/?from=sinacom(可以从新浪新闻的首页链接进入)2.选择国内新闻,分析网页源代码,发现有个动态加载更多新闻的apihttp://interface.sina.cn/wap_api/layout_col.d.json?&showcid=56261访问之,发现返回json格式的新闻,但并不是当前页面的内容…
注:如果集成了百度的Frontia和SinaCoreSDK, 那么SSO会出现包冲突 https://github.com/sinaweibosdk/weibo_android_sdk/issues/56 要先获取API发送的权限 public class ShareToSinaActivity extends DFActivity { private WeiboAuthHandler weiboAuthHandler; private String shareTitle, shareConte…
使用threeJS搭配新浪股票财经API 在线: http://wangxinsheng.herokuapp.com/stock 截图: A股涨幅榜[一片红10%] 检索[单击添加到自选内,自选使用localstore方法] 最后来个全球股市全景[有点重叠,调整下高度就OK了]…
新浪期货数据接口 [例子]http://hq.sinajs.cn/list=M0豆粕连续 M0 返回值如下:var hq_str_M0="豆粕连续,145958,3170,3190,3145,3178,3153,3154,3154,3162,3169,1325,223,1371608,1611074,连,豆粕,2013-06-28"; ----------------------------------------------------------查看 http://finance.…
<!doctype html> <html class="no-js fixed-layout"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>天气</title> </head> <bod…
紧急情况说明: 禁用IP列表: 39.104.69.*(原因39.104.69.6 在2018年10月的 17~20日 排行为top 1,每天几十万次.) 47.98.211.* (原因47.98.211.131 在2018年11月份长期每天30~40万次每天) 2019年05月14日15:02:25 更新禁用IP列表如下: 121.40.192.*,111.61.21.*,60.29.188.*,61.164.49.*,39.107.58.*,117.90.4.*,49.82.107.*,22…
上面是简单截图: 前台代码: @{ Layout = null; } <!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width" /> <title>Index</title> <style> #dvShow{ width:800px; margin:0px auto; backgr…
1.  利用 CURLOPT_WRITEFUNCTION 设置回调函数, 利用 CURLOPT_WRITEDATA 获取数据指针 官网文档如下 CALLBACK OPTIONS CURLOPT_WRITEFUNCTION Pass a pointer to a function that matches the following prototype: size_t function( char *ptr, size_t size, size_t nmemb, void *userdata); …
头条 http://api.sina.cn/sinago/list.json?channel=news_toutiao推荐 http://api.sina.cn/sinago/list.json?channel=news_tuijian汽车 http://api.sina.cn/sinago/list.json?channel=news_auto娱乐 http://api.sina.cn/sinago/list.json?channel=news_ent体育 http://api.sina.cn…