|
|
|
@ -11,7 +11,7 @@ from PixivSearch.thrift.QueryComment import QueryComment |
|
|
|
|
from PixivSearch.thrift.QueryComment.QueryComment import Iface |
|
|
|
|
|
|
|
|
|
commentPath = '/root/PixivSearch/PixivSearch/thrift/tmpFile/comment' |
|
|
|
|
|
|
|
|
|
#commentPath='/home/hua/下载/comment' |
|
|
|
|
|
|
|
|
|
class Server(Iface): |
|
|
|
|
def commentSumList(self, cids): |
|
|
|
@ -31,7 +31,7 @@ class Server(Iface): |
|
|
|
|
for cid in cids: |
|
|
|
|
downloadXml(path, cid, |
|
|
|
|
histroy=False) |
|
|
|
|
zipFile = '{path}/{fileName}.zip'.format(path=path,fileName=fileName) |
|
|
|
|
zipFile = '{commentPath}/{fileName}.zip'.format(commentPath=commentPath,fileName=fileName) |
|
|
|
|
print(zipFile) |
|
|
|
|
Util.zip(path, zipFile) |
|
|
|
|
if os.path.isfile(zipFile): |
|
|
|
|