Slackyon

Feed2Torrent (beta)

feed2torrent (feed2torrent-0.1.beta6.tgz ) is a simple script that will fetch torrent files from given rss/atom feeds, and launch ctorrent instances to download the files they reference.

Requires:

Optionally:

Using from the command line:

There are two ways to use feed2torrent. The first is with a list of feeds, second is with a single .torrent file.

With feeds, create a simple text file with a list of RSS or Atom feed URLs that reference some interesting torrent files. One URL per line. Then from the same directory, invoke:

feed2torrent --fetch --feeds yourfeeds.txt --spawn -m 5
                        

Or, with a single torrent file already downloaded, invoke:

feed2torrent --torrent some.torrent
                        

Using with cron:

Invoked from cron, feed2torrent is quite handy:

PATH=$PATH:/usr/bin:/usr/local/bin:/bin
0 */1 * * * (cd /downloads && ~/bin/feed2torrent --fetch --spawn -m 5) >> ~/fetch.log 2>&1
                        

Options:

Usage: feed2torrent [options]

For fetching torrent files from given rss/atom feeds, and launching ctorrent
instances to download the files they reference. Requires enhanced ctorrent to
retrieve torrents (http://www.rahul.net/dholmes/ctorrent/).

Options:
  --version             show program's version number and exit
  -h, --help            show this help message and exit
  -F FILE, --feeds=FILE
                        a list of feed urls to monitor. default: 'feeds'
  -f, --fetch           if set, will fetch torrent files from feed
  -s, --spawn           if set, will spawn ctorrent instances
  -m NUM, --max_spawn=NUM
                        max number of ctorrent instances to run. default: '5'
  -D RATE, --download=RATE
                        the download rate. default: '100'
  -U RATE, --upload=RATE
                        the upload rate. default: '100'
  -e HOURS, --seed=HOURS
                        the number of hours to seed after download. default: '72'
  -S HOSTNAME:PORT, --server=HOSTNAME:PORT
                        the control server hostname and port. default: 'localhost:2780'
  -p, --prime           if set, will only download torrents from feeds, and
                        mark them as downloaded. use to prevent mass
                        downloading of files you already have.
  -t FILE, --torrent=FILE
                        a torrent to retrieve. called recursively by this
                        application when spawning
  -r, --repair          retrieves downloaded torrent files from cache if
                        mistakenly stored, removes 'empty' binary files
  -c, --clean           renames .downloading files to .torrent. only run if
                        all torrents have stopped and .downloading files are
                        lingering