Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- nvpopov@nvpopov-Aspire-V3-772:~/taobao-sdk-PYTHON-auto_20150420% cat test.py
- # -*- coding: utf-8 -*-
- from top.api.rest import *
- from top.api.base import FileItem
- import top.api
- top.setDefaultAppInfo("*", "*")
- a = top.api.TbkItemsGetRequest()
- a.cid = 51650002
- a.fields = "nick"
- f= a.getResponse()
- print(f)
- b = top.api.TbkItemsGetRequest()
- b.cid = 16
- b.fields = "nick"
- f= b.getResponse()
- print(f)
- nvpopov@nvpopov-Aspire-V3-772:~/taobao-sdk-PYTHON-auto_20150420% python test.py
- {u'tbk_items_get_response': {u'total_results': 0}}
- {u'tbk_items_get_response': {u'total_results': 35487253, u'tbk_items': {u'tbk_item': [{u'nick': u'ee19850923'}, {u'nick': u'\u4f0a\u7f8e\u7279\u5973\u88c5\u5e97'}, {u'nick': u'\u5973\u88c5\u4f18\u8863\u5e93\u5973\u88c5'}, {u'nick': u'\u5973\u4eba\u5473\u65f6\u5c1a\u5973\u88c5pf'}, {u'nick': u'jiejie1247'}, {u'nick': u'liyi19921004'}, {u'nick': u'\u6dd8\u8863\u7ad92014'}, {u'nick': u'\u67d4\u67d4\u7684\u5b8c\u7f8e\u8863\u6a71'}, {u'nick': u'\u6bdb\u83c7\u5c0f\u8c61'}, {u'nick': u'\u6bdb\u83c7\u5c0f\u8c61'}, {u'nick': u'\u6b63\u54c1\u65e5\u97e9\u9986'}, {u'nick': u'\u5b9c\u4f73'}, {u'nick': u'\u5927s\u5c0fs_\u5973\u88c5\u5e97'}, {u'nick': u'\u67f3\u5c1a\u84dd\u6735\u4e13\u5356\u5e97'}, {u'nick': u'koaloo'}, {u'nick': u'\u516c\u4e3b\u5973\u88c5\u5e97'}, {u'nick': u'moon\u67e0\u6aac\u5bb6'}, {u'nick': u'\u6c14\u8d28_\u6dd1\u5973\u574a'}, {u'nick': u'\u5f69\u9edb\u5983\u65d7\u8230\u5e97'}, {u'nick': u'\u5f69\u9edb\u5983\u65d7\u8230\u5e97'}, {u'nick': u'\u60c5\u5fc3\u96e8\u65d7\u8230\u5e97'}, {u'nick': u'\u6728\u6728\u7231\u8863\u5c1a'}, {u'nick': u'\u552f\u83b3\u65d7\u8230\u5e97'}, {u'nick': u'\u96e8\u96e8\u8863\u54c1'}, {u'nick': u'zhouhaizhi88'}, {u'nick': u'\u4ed9\u5143\u7d20\u65d7\u8230\u5e97'}, {u'nick': u'\u4f9d\u8863socool'}, {u'nick': u'alexs_cj'}, {u'nick': u'\u88c1\u7f1d\u5341\u4e09'}, {u'nick': u'\u67da\u5b50\u7f8e\u8863\u79c0'}, {u'nick': u'\u6a61\u59ff\u838e\u65d7\u8230\u5e97'}, {u'nick': u'2013\u505a\u4e0d\u53ef\u80fd\u7684\u4e8b'}, {u'nick': u'\u5723\u4fdd\u96c5\u9e7f\u7fbd\u7ed2\u670d'}, {u'nick': u'\u59d3\u798f\u7684\u5b69\u5b50'}, {u'nick': u'\u6d77\u4f26\u7535\u8baf'}, {u'nick': u'\u7c73\u4e36mu'}, {u'nick': u'love\u68a6\u5e7b\u8863\u820d'}, {u'nick': u'calvin\u96c4'}, {u'nick': u'\u5f69\u9edb\u5983\u65d7\u8230\u5e97'}, {u'nick': u'\u7b71\u73e9\u8d1d\u8d1d'}]}}}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement