from pytypecho import Typecho
获取typecho分类详情:
def getcategory():
te = Typecho('http://***.com/index.php/action/xmlrpc', username='***', password='*****')
allType = (te.get_categories())
mType=[]
for i in allType:
mType.append(i["categoryId"]+' '+i["categoryName"])
return (mType)