2013-08-09 1 views

답변

1
h = ses.add_torrent(params) 
s = h.status() 
while (not h.is_seed()): 
    print s.total_wanted # prints total size wanted after meta data is obtained, before that 0 is printed. 
1

C++ API를 살펴보면 페이지 아래쪽에있는 torrent-infofile_iterator 방법을 통해 원하는 정보를 얻을 수 있습니다. python bindings 섹션의 내용 :

파이썬 인터페이스는 C++ 인터페이스와 거의 동일합니다.

그래서 약간의 노력으로 이러한 방법을 사용할 수 있습니다.