2011-07-06 32 views

回答

2

使用python您可以輕鬆地閱讀/編輯使用bencode.py模塊torrent文件

例子:

 
>>> import bencode 
>>> rawdata = open('foo.torrent').read() 
>>> bencode.bdecode(rawdata) 
{'announce': 'http://cbbatracker.appspot.com/announce', 
'comment': 'HOTD for testing purposes', 
'created by': 'Transmission/2.04 (11151)', 
'creation date': 1292094068, 
'encoding': 'UTF-8', 
'info': {'length': 262212441, 
      'name': '[SnF] Highschool of the Dead 02 [285FB2DA].mp4', 
      'piece length': 131072, 
      'pieces': '...lot of binary data...', 
      'private': 0}} 
0

是的,這是可能的。很多開源的torrent軟件使用libtorrent庫。 它的問世在C++ langage

libtorrent

+0

其實不是真的,激流稱號,是網站的特定,我一直沒能找到任何領域這表示它是這裏的洪流標題 – Max

0

你必須要更具體的是什麼,你居然意味着。如果你的意思是來自元文件的「info.name」,那麼任何語言的任何bencode模塊都會使它變得相當容易。