公共API代码项目? [英] public API codeproject?

查看:69
本文介绍了公共API代码项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有公共api可通过在codeproject.com上的文章标签进行查询

is there a public api available to query by tags the articles at codeproject.com

推荐答案

API.只需使用HttpWebRequest和HttpWebResponse.用于搜索的网址是:

http://www.codeproject.com/search.aspx?doctypeid = 1& q = C%2b%2b& sort = createddesc& field = tag [
You can achieve a this without any API. Just use HttpWebRequest and HttpWebResponse. The url to use for searching is this:

http://www.codeproject.com/search.aspx?doctypeid=1&q=C%2b%2b&sort=createddesc&field=tag[^]

By playing around with that search page I found out you can define in which field is being searched. By having the parameter field equal to tag the documents of doctypeid equal to 1 (articles BTW) you search for article by tag. All that is left to do for you now is to parse the response with the HtmlAgilityPack for instance.
Paging is done via the pgsize and pgnum parameters where pgsize denotes how many results are packed into the response and pgnum denotes which page number to return.

Hope this gives you an idea.

Best Regards,

-MRB


目前尚不存在,但尚无发行日期.
Not at the moment, there is one in the making, but no release date as of yet.


这篇关于公共API代码项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆