接口说明文档:

article.fetch(通用转码服务)

通用转码服务,获取任意 url 的正文以及 title 等基本信息,仅支持 post 方法请求。

参数

参数 类型 是否必须 示例 其它说明
token string abc1234sxba app.auth 中获得的 token 信息
url string http://www.pingwest.com/market/ubdc2017-youmeng/?type=1 文章的 url
format string 否,默认为 html raml 文章正文的格式,支持 html, raml
js int 否,默认为 0 0 文章正文是否需要 javascript 动态加载

请求示例:

curl "https://api.qingmang.me/v2/article.fetch?token=abc1234sxba&format=raml" -d "http://www.pingwest.com/market/ubdc2017-youmeng/?type=1"

返回

{
"ok": true,
"article": {
"articleId": "8761595884994052465",
"title": "2017UBDC:数据的狂欢,全景解读“DI的力量” | PingWest品玩",
"subtitle":"2017UBDC:数据的狂欢,全景解读“DI的力量” | PingWest品玩",
"snippet": "今天,2017UBDC全域大数据峰会在北京圆满举行。大会由【友盟+】主办,以“DI的力量”为主题,全景展现大数",
"contentFormat": "raml",
"content": "正文内容",
"images": [{
"url": "http://link_to_image",
"width": 1024,
"height": 2048
}]
}
}

请求成功后,会返回正文的基本信息。

注意:

url在body里面

token 和 format 在header里面

jmeter:

http请求:

header:

最新文章

  1. dedecms 采集规则过滤与替换
  2. express+gulp构建项目(二)启动项目和主文件
  3. WPF – pass multiple parameters to a Command
  4. div+css基础
  5. linux命令 screen的简单使用
  6. mvn安装jar文件到本地
  7. C++文件操作之get/getline
  8. C#相关图书推荐
  9. android访问webservices
  10. SharePoint Search之(两)持续抓取Continues crawl
  11. The ways to kill Oracle session
  12. How To Use Linux epoll with Python
  13. 【OCR技术系列之三】大批量生成文字训练集
  14. Exception in thread "main" java.lang.IllegalArgumentException
  15. 生产者/消费者问题的多种Java实现方式
  16. Axios 中文说明
  17. [Swift]LeetCode277. 寻找名人 $ Find the Celebrity
  18. markdown在线编辑插件mditor
  19. Junit测试用例
  20. js條件結構和循環結構

热门文章

  1. BUUCTF--rsa
  2. WPF绑定并转换
  3. 奇葩问题:Invalid bound statement (not found): cn.zss.zsdemo.mapper.RoleMapper.selectByPrimaryKey
  4. 常见3种Git服务器的构建
  5. 网络拓扑_VLAN与Trunk配置
  6. set unused
  7. hdu 5963:朋友
  8. 027:for标签使用详解
  9. Centos7网卡绑定的两种方法
  10. win7系统安装sql2000数据库时没有反应,不出来安装界面?