Is it possible to extract the torrent title from the meta data loaded from DHT or the file downloaded from some server like TPB? any api,lib any language would do
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Using
pythonyou can easily read/edit a torrent file using bencode.py moduleExample:
>>> 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}}