New user's registration have been closed due to high spamming and low trafic on this forum. Please contact forum admins directly if you need an account. Thanks !

Automatically download torrent files using rsstorrent

A collection of tips on howto tweak your Bubba.
Post Reply
AzP
Posts: 60
Joined: 04 Mar 2011, 08:09

Automatically download torrent files using rsstorrent

Post by AzP »

Hi guys

I was lacking software that could automatically download torrent files based on a regular expression (or something like it) to my B3. The torrent download is great, but it kind of defeats the purpose for me, since I still had to log in to my torrentsite, download the torrent, and manually put it on the torrent-folder on the B3.

Therefore I wrote a small program in python that monitors an RSS-feed and downloads all torrent files that match the files you have stated that you would like to download. It works for me on the B3, but you have to start it using screen for now. The init-script does not work yet. But I'm working on it.

The config file is pretty self explanatory, but I have hard coded the script to only work with torrentbytes.net for the time being. This is also something that I need to take care of, hopefully during this weekend.

If you have an account at torrentbytes, there is a thread on the forum telling you have to get the RSS-feed from it (get the one with your hashed password and username in it), and you should then be ready to add it to the rsstorrent config-file and then be ready to roll!

Hope somebody else finds this useful. If you do, please throw me a few comments about what to improve, etc. The things that has been taking most of my development time is actually deciding on how the script should behave, and how the user should be able to control/configure/use it.

If you don't find it useful, please tell me why as well. Perhaps we can find space and time for adding some more features. But my idea is to keep it simple and have it do one thing pretty well.

I created a repository at gitHub, so either you clone it to your bubba (to easily get fixes and changes) using git, or you can just download the files manually from the page.
https://github.com/AzP/rsstorrent

If you want to run it in a screen session, follow the tutorial at [url=http://wiki.excito.org/wiki/index.php/T ... k_Tutorial[The Excito wiki[/url]. But the gist of it:

Code: Select all

1. Log-in using SSH
2. Run 'screen -S rsstorrent' (use whatever name you want for the session)
3. Start the script (./rsstorrent.py or python rsstorrent.py)
4. Press ctrl+A ctrl+D
Now the session should be running in the background. Check it is by entering

Code: Select all

screen -ls
That should show the name of your session. Reconnect to it the next time you SSH into the box by running

Code: Select all

screen -r rsstorrent
linuxtrap
Posts: 16
Joined: 14 May 2011, 14:56

Re: Automatically download torrent files using rsstorrent

Post by linuxtrap »

Hello

Just wanted to say thanks, good idea and keep up the love for the B#.

PT
AzP
Posts: 60
Joined: 04 Mar 2011, 08:09

Re: Automatically download torrent files using rsstorrent

Post by AzP »

You're welcome! I hope you like it, I'm glad for every person that finds it useful!
Post Reply