Checking for torrents

rssdler allows you to parse RSS feeds, downloading objects they reference. This makes it ideal for downloading torrent files and putting them somewhere that rtorrent (or other apps) can watch for them. If you are having problems with regular expressions then this is a great site, you can test your expressions against a string to check if it works. The examples I've given in this script are very basic, but you can make them as fancy as you like.

There isn't too much to configure, other than the config file itself; here's mine:


#As the name indicates, settings under the global section apply to everything, unless
#you override it in a thread. [global]

#Assuming that you're using rtorrent, you'll likely want to set downloadDir to rtorrent's
#watched directory. downloadDir = /home/grenage/archive/torrents

#Where rssdler is installed. Paths that aren't absolute are relative to this path. workingDir = /home/grenage/.rssdler

#Sets the smallest file it will download, 0 = no limit.
minSize = 0
#Log levels go from 0 to 5. Zero logs nothing, five logs everything. You'll find 5 usefull
#if you can't work out why something isn't downloading.
log = 1
#As you might suspect, this is where the logfile is kept.
logFile = /home/grenage/.rssdler/log.txt

#How many minutes to wait before checking RSS feeds again. scanMins = 15

#How many seconds to wait between HTTP requests.
sleepTime = 0

#If you only want rssdler to run once, use true. Most people will want false. runOnce = false

Mechanize installed?
urllib = False

#########################
#Your feeds go down here#
#########################
#Name your thread (you can have as many as you like; I've added an example RSS
#from a popular site.
[baka-updates]

#Here's the RSS link for the site. link = http://feeds2.feedburner.com/baka-updates/wKDI?format=xml

#Maximum file size, 0 = unlimited.
maxSize = 0
#Minimum file size, this overrides the global setting.
minSize = 0

#One must assume you actually want to download what you've found.
nosave = False
#The fun part, regular expressions (regexes). Here you enter patterns that will be
#compared to the feed, so you'll need a rough idea of what you're looking for. You can #also have a regexfalse=() for comparative checks (more on the rssdler site). In
#this example the periods are single-character wildcards, and the asterisk key refers #to zero or more of the symbol type preceding it. In these cases, it follows a period,
#so it will match any number of any characters. It's very basic, but quick and dirty #gets the job done; ensure all torrent names are in lowercase. Multiple torrents can
#be separated with a "|" symbol. regextrue = (.ayako.koukaku.no.regios.*|.db.bleach.*)

Links

ubuntu firefox the gimp amarok