exception weboob.capabilities.torrent.MagnetOnly(magnet)

Bases: weboob.capabilities.base.UserError

Raised when trying to get URL to torrent but only magnet is available.

class weboob.capabilities.torrent.Torrent(id=u'', url=NotLoaded, backend=None)

Bases: weboob.capabilities.base.BaseObject

Torrent object.
  • name – (unicode) Name of torrent
  • size – (float) Size of torrent
  • date – (date, datetime) Date when torrent has been published
  • magnet – (unicode) URI of magnet
  • seeders – (int, long) Number of seeders
  • leechers – (int, long) Number of leechers
  • files – (list) Files in torrent
  • description – (unicode) Description of torrent
  • filename – (unicode) Name of .torrent file
class weboob.capabilities.torrent.CapTorrent

Bases: weboob.capabilities.base.Capability

Torrent trackers.


Get a torrent object from an ID.

Parameters:_id (str) – ID of torrent
Return type:Torrent

Get the content of the .torrent file.

Parameters:_id (str) – ID of torrent
Return type:bytes

Search torrents and iterate on results.

Parameters:pattern (str) – pattern to search
Return type:iter[Torrent]