Settings | Sign in | Sign up

There are currently 5 posts.

【欢呼】终于找到了维基百科词条调用的api命令

Floor 1 張樹人 1/19/11 21:25
http://zh.wikipedia.org/w/api.php?action=parse&format=xml&page=词条名(utf-8编码)&variant=要转换成的语言(如“zh-cn”)
例如:蓝猫淘气3000问
http://zh.wikipedia.org/w/api.php?action=parse&format=xml&page=%E8%93%9D%E7%8C%AB%E6%B7%98%E6%B0%943000%E9%97%AE&variant=zh-cn
然后就会将该词条输出成xml,php中直接调用就行了,然后档案模块就可以做了的说~~
Floor 2 产品的注销 1/19/11 21:26
Floor 3 張樹人 1/19/11 21:31
档案模块从xml中截取前面一小段就行了,然后像百度那样,链接到维基百科的词条上
Floor 4 产品的注销 1/19/11 21:31

回复:3楼

Floor 5 張樹人 1/27/11 1:10
先顶上来,明天做档案模块时会用得到

Content converter:

Reply the post
Content:
User: You are currently anonymous.
Captcha:
Unclear? Try another one.
©2010-2025 Purasbar Ver3.0 [Mobile] [Desktop]
Except where otherwise noted, content on this site is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported license.