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.