#! /usr/bin/env python import torrentfile import torrententry for file in ('torrent.torrent', 'torrent2.torrent'): torrent = torrentfile.TorrentFile() torrent.readFile(file) print torrent.getSize() print torrent.getTracker() print torrent.getHash()