Torss - downloads selected torrents from RSS feeds

I often have a problem with various private torrent trackers that by the time I add to torrent to my client it has already been active for a long time and I struggle to maintain a good ratio. As such I wanted something which could scrape the tracker's RSS feed, find torrents that match various patterns and download the torrent files to a folder for my torrent client to pick up.
So I wrote torss. It's quite simple, but it does what I need it to do. The user defines some rules, decides which "getter" to use (each RSS feed has its own getter) and runs torss with those settings (likely from cron).
Help:
$ torss -h
Usage: /usr/bin/torss -g getter [OPTIONS]...
torss is parser of RSS feeds which downloads files referenced in the RSS if the
title of the entry matches given rules.
-g, --getter getter script to use
-r, --rules rules file to use
-d, --destination destination path to save torrents to
-i, --history history file to use
-h, --help help
The rules file must contain an array named rules containing at least one entry.
These entries should be regular expressions (for grep -Ei) for torrent titles
to be downloaded. See /etc/torss/rules.sample
The getter script will be looked for in ~/.config/torss/getters/, then
/etc/torss/getters/ and finally as a file referenced from the CWD. This means
you can pass either simply the filename or the absolute/relative path.
The destination path will usually be a folder where your torrent client
automatically picks up torrent files.
The history file is used to ensure the same torrent isn't downloaded multiple
times, as such it should, for normal use, be left as the default value.
Example Use:
~/.config/torss/rules:
rules[0]="foobar S01E[0-9]{2}(.+)?720(.+)?x264"
Those rules match what's in a demo getter script that's included in torss.
$ torss -g demo
Downloading 'Foobar S01E02 720p x264-Pirate' to /home/sid
Downloading 'Foobar S01E01 720p x264-Pirate' to /home/sid
There is also a history file to avoid downloading the same torrents a second time.
I've created the following PKGBUILD, but not yet put it in the AUR as I'd like some feedback first.
PKGBUILD:
# Maintainer: Sid Karunaratne <sakaru at gmail dot com>
pkgname=torss
pkgver=0.2.3
pkgrel=1
pkgdesc="scrapes RSS feeds to find torrents that match user defined rules, then downloads them"
license=('LGPL2')
arch=('any')
depends=('xmlstarlet')
source=(${pkgname}-${pkgver}.tar.gz::https://github.com/sakaru/${pkgname}/tarball/${pkgver})
md5sums=('992f825a649b83e592c31c43eb256c53')
backup=('etc/torss/getters/hd-torrents.org' 'etc/torss/getters/thebox.bz' 'etc/torss/getters/thepiratebay.org')
install=install
build() {
# We need to rename githubs folder as its name isn't easy to predict
cd $srcdir
folder=$(tar -tf ${pkgname}-${pkgver}.tar.gz | head -n1)
mv $folder ${pkgname}-${pkgver}
package() {
install -Dm755 ${srcdir}/${pkgname}-${pkgver}/torss $pkgdir/usr/bin/torss
install -Dm644 ${srcdir}/${pkgname}-${pkgver}/rules.sample $pkgdir/etc/torss/rules.sample
install -Dm644 ${srcdir}/${pkgname}-${pkgver}/getters/demo $pkgdir/etc/torss/getters/demo
install -Dm644 ${srcdir}/${pkgname}-${pkgver}/getters/thepiratebay.org $pkgdir/etc/torss/getters/thepiratebay.org
install -Dm644 ${srcdir}/${pkgname}-${pkgver}/getters/hd-torrents.org $pkgdir/etc/torss/getters/hd-torrents.org
install -Dm644 ${srcdir}/${pkgname}-${pkgver}/getters/thebox.bz $pkgdir/etc/torss/getters/thebox.bz
install:
post_install() {
cat <<EOF
==> Various getter scripts have been installed to /etc/torss/getters.
==> If you intend to use the getters for private trackers you will need
==> to edit the appropriate scripts to use your credentials. Copy them to
==> ~/.config/torss/getters if you wish them to be private.
EOF
Since it's on github I know I could use git to clone the repo for the latest code, but I prefer using tags to state releases. This way things like aurcheck/yaourt/packer/etc know there has been an update.
Some private trackers (the ones I made for myself) are already included, though you'll need to edit them, setting the cookiejar values to those of your own cookies.
I would greatly appreciate feedback, this is the first non-trivial bash script I've written.

Yes - and the same here all of a sudden. Very annoying indeed. I really don't want to have to have another app. just to read my RSS feeds but is that going to be the solution? I'm sure this trouble started after I'd inadvertently erased messages instead of marking them all read. And it's only with two VersionTracker feeds too, not the others I get. VT have yet to respond to my request for ideas but if the y do, I'll post here again.

Similar Messages

  • Adding dataset from RSS feed

    Hi,
    Could anyone explain me step by step procedure to add dataset from RSS feed? My main concern is how will I create a dedicated RSS feed and sync it with my R/3 to fetch data from it?
    Cordially,
    Danish

    Danish,
    I was wondering if you could share your solution? I am trying to do something similar and haven't been able to successfully get the data imported the way I want.
    I've created a standard RSS feed, but that format really doesn't seem to be conducive to communicating data rows.
    Thanks,
    Nate

  • Metadata on iPod from RSS feed (podcast) - ID3 tags or XML-generated?

    Hi,
    Does the metadata on an iPod come from the ID3 tags or from the XML-generated content in the RSS feed?
    Thanks!

    Afterthought:
    My experience is generally with tweaking tags to get iTunes to merge feeds but if you are downloading podcasts directly to the iPod it may concentrate on the feed information. Short of running tests with deliberately different information in the feed & the tag it is hard to say.
    tt2

  • OmniPortlet only showing excerpts from rss feed

    I have an Omniportlet set up with our internal staff news Wordpress rss feed. The feed is only showing excerpts but I require full text. I know the feed is capable of full text as it works correctly in IE8 and a pdf generator I'm running.
    Below is XSL filter I'm using:
    <?xml version="1.0" encoding="UTF-8" ?>
    <!-- This XSL is provided as example to show how to consume RSS and RDF using OmniPortlet -->
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:rss="http://purl.org/rss/1.0/"
    xmlns:dc="http://purl.org/dc/elements/1.1/" version="1.0"
    xmlns:rdf090="http://my.netscape.com/rdf/simple/0.9/">
    <xsl:output method="xml" indent="yes"/>
    <xsl:template match="/rss/channel">
    <rowset>
    <xsl:for-each select="item">
    <row>
    <link><xsl:value-of select="./link"/></link>
    <title><xsl:value-of select="./title"/></title>
    <description><xsl:value-of select="./description"/></description>
    <pubDate><xsl:value-of select="./pubDate"/></pubDate>
    </row>
    </xsl:for-each>
    </rowset>
    </xsl:template>
    <xsl:template match="/rdf:RDF">
    <rowset>
    <xsl:if test="rdf090:item">
    <xsl:for-each select="rdf090:item">
    <row>
    <link><xsl:value-of select="./rdf090:link"/></link>
    <title><xsl:value-of select="./rdf090:title" /></title>
    <description><xsl:value-of select="./rdf090:description" /></description>
    <pubDate><xsl:value-of select="./pubdate"/></pubDate>
    </row>
    </xsl:for-each>
    </xsl:if>
    <xsl:if test="rss:item">
    <xsl:for-each select="rss:item">
    <row>
    <link><xsl:value-of select="./rss:link"/></link>
    <title><xsl:value-of select="./rss:title" /></title>
    <description><xsl:value-of select="./rss:description" /></description>
    <pubDate><xsl:value-of select="./pubDate"/></pubDate>
    </row>
    </xsl:for-each>
    </xsl:if>
    </rowset>
    </xsl:template>
    </xsl:stylesheet>
    Can anyone tell me how to get the full text to show for each item?
    Thanks

    If the feed is capable of displaying full text, then you need to modify your filter to read the fulltext and add this cloumn to your layout to display. Can you provide sample xml file (datasource) if you want me to investigate further. Please enclose the xml inside { code } xml { code }
    note no space before and after the braces for the 'code'
    regards,
    ~Krithika

  • Dynamic Menu From RSS Feed?

    Hello,
    I have a client who would like a drop-down menu dynamically
    created to show links to the most recent posts on a WordPress blog.
    Has anyone seen anything like this? The menu would *not* be on a
    page that's part of the WP installation -- it would most likely
    pull items from the WP RSS feed.
    Any ideas or resources anyone can point to on this?
    Many thanks,
    Matt

    Hi,
    Of course. You can create your menuVO and then use an iterator inside your menu component so you create a menuItem for each row in your DB.
    Hope this gives you an idea.

  • N97 Browsing from Rss feed

    Hi all, first post on here. I decided (for some mad reason) last month to get a N97 rather than a iphone...I think I was going to miss a good camera, and I thought it was too much. Anyway I have a good few issues with the thing, one being If I click on a link from a RSS feed that opens the (slow) browser, If I then want to contining browsing...a: The bookmarks are disable in Options and b: links don't work within webpages. If I close the browser and close the RSS then open the browser seperatly all is fine.
    Has anyone else got he same problem? 
    Thanks Darren
    woooops Firmware v 11.0.021
    Message Edited by Mekon101 on 16-Oct-2009 10:06 AM

    Danish,
    I was wondering if you could share your solution? I am trying to do something similar and haven't been able to successfully get the data imported the way I want.
    I've created a standard RSS feed, but that format really doesn't seem to be conducive to communicating data rows.
    Thanks,
    Nate

  • Download select songs from iTunes Match

    I am an iTunes Match user. On the computer with which I sync my iPod nano, I do not want to hold my entire library. However, I would like to download select songs and/or playlists from the cloud to transfer to my nano. Is there any easy way to do this?

    What happens if you click the cloud with the down arrow icon next to a track?

  • NSXMLParserError Domain error 26 from RSS feeder

    The RSS feeder I got from the App store stopped working today. It has been working perfectly for the last 6 months but now is not refreshing and throwing the above noted error. I am on Mavericks 10.9.5 (with all updates applied). Any ideas as to where I should be looking to resolve this? I have Googled the error but nothing points towards my specific application.
    Thank you for any help offered.

    Never mind - the problem was one of the feed sources.

  • Add a podcast from rss feed

    Hi. How can I add a podcast, that is not in the iTunes podcast directory, but only is presented as a web-page and an rss-feed?

    Well everyone keeps saying to use:
    http://phobos.apple.com/static/iTunesRSS.html
    But it's not working for me. I keep getting Bad http result code: 404 - error....

  • Download selected pics from PC to iPhone

    How do I get just selected pics (not sync all photos) from my PC to my phone? I've uploaded from the phone to the PC but not vice versa.

    Under the Photos tab for your iPhone sync preferences, at Sync Photos From, select this and then choose the folder on your hard drive that contains the photos that you want to transfer from your computer to the iPhone.

  • Flashes White Screen After Opening Link in Tabs from RSS  Feed

    Hi.
    This is a weird glitch/bug that I'm trying to get to the bottom of. It happens very often, that when I open all of my feeds (they are all collected in one folder so I can view them at once) and choose to open a link from one of the feeds in a separate tab, the entire screen becomes white for a second or two before opening the link. I've been searching around and can't find anyone that has a similar problem or has documented it. I would greatly appreciate if I could fix this.
    Powerbook G4   Mac OS X (10.4.5)  

    My website is on DotMac.
    So that people don't have to remember hompage.mac.com/blablabla,.etc.,
    I purchasd a domain name from Goddady here;
    http://www.godaddy.com/gdshop/default.asp
    My new name is, www.tommurrayartist.com When this is typed in, it is redirected to my DotMac address. It was also masked so the tommurrayartist address shows in the address bar.
    Apparently Safari can't handle this the way Camino can.
    So I unchecked masking in my Godaddy account.
    No more flashing with Safari.

  • Why can't I download select photos from my ipad to my pc?

    I can't down load photos from my ipad to my pc.  My only choice is to dowload all photos not selected ones.

    You can use 3rd party apps like File Transfer to selectively transfer photos to yor computer.
    https://itunes.apple.com/sg/app/file-transfer/id584806191?mt=8

  • New iPad 2 16mb; how do I sync (download) selectively - pictures from iPhoto and music from iTunes?  Or do I have to download all? I only have 16 mb on my iPad 2.?

    My new iPad 2 has only 16 mb. I have hundreds of pix on my MacBook Pro laptop  iPhoto and I don't know how many mbs of music on my iTunes. I haven't sycned my new iPad with my MacBook Pro yet because I fear I will overrun the available space I have on the iPad. Is there any way to selectively download pix and iTunes to the iPad?

    You should have 16 GIG on yourr iPad, not 16 meg
    When you hook them up to iTunes select to 'manually manage music and videos' and that will allow you to choose what bits and pieces you can put on your device.

  • Google and Yahoo option missing from RSS feeds

    When i click on the RSS icon in firefox to subscribe to a feed, Yahoo and Google are both missing.
    http://img13.imageshack.us/img13/4135/rssbx.jpg
    How can i restore both of these and other readers.

    thanks, but how do you add yahoo and google to the "podcast" and "video podcast" feed in the Tools>Options>Applications?
    I only have browser.videoFeeds.handler and browser.audioFeeds.handler properties in my about:config.
    these are missing
    browser.audioFeeds.handlers.application
    browser.audioFeeds.handlers.webservice
    browser.videoFeeds.handler.default
    browser.videoFeeds.handlers.application
    browser.videoFeeds.handlers.webservice

  • In Mail, can see messages from RSS feed but not my e-mail account

    Mac OS 10.5.8, Mail 3.6.  Turned on the computer and could not see any e-mails,  though computer idnicated there were a few waiting for me.  Found the messages in finder, but can'r figure out how to get mail to see them.  Receieved some RSS ["apple news"] emaages and they show up fine.  Tried "rebuiding" & "reindexing" and re-importing to no avail. Any ideas?

    Here is the new incoming server info to be changed in the accounts preferences box.
    imap.mail.me.com
    The old one is mail.me.com
    The only possible problem I see is that sometimes the incoming mail server cannot be changed and you might have to create a new account, but I think,and I'm not sure, that this deletes your messages in the  mail program, so back up before you try this. Just in case.
    Hope this helps.

Maybe you are looking for

  • Sending Smart forms O/P as an attachment thru e-mail...

    Hi friends... I have dveloped a new Smartform for PO reminder letter.. and I am trying to send it as an attachment thru mail... the code I wrote for that is given... but I am getting a runtime error like In program "CL_TRACE_BCS==================CP "

  • Issues With iPad mini after upgrading to iOS 8.1.2......

    WWish I'd checked the forums first, but I upgraded to 8.1.2. A few days ago and have had nothing but issues. FIrst -- it takes twice to three times as long to boot up my device.            After the apple logo disappears, the screen is just black for

  • How much $$$ to fix a dead iPod?

    i accidentally dropped my iPod in water, i thought it was ok though because my sister dropped hers and its still working! but now my iPod is amost legally dead! when i turn it on the little on off switch turns green as usual but no other lights. when

  • How to display more than 12 numbers in one single  column  of excel

    hi, i lokesh, i am using gui_download for downloading excel sheet. actually during download one of my field contains 18 numbers, so in excel, in that particular column it shows as a 3.0000E18 and also for example: actually property number is 10000000

  • Installed OBIEE on laptop without loopback adapter

    Hello there I have installed OBIEE 11.1.1.5 on my personal laptop which was on DHCP network and connected to Wi-Fi. However prior to installation i did not install & configure the loopback adapter. Now when i try to go out of my Wi-Fi network and its