Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Other Community Discussions > Tutorials & Tips
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Tutorials & Tips
The place to find Ubuntu related Tips & Tricks.

 
Thread Tools Display Modes
Old November 14th, 2006   #1
gasparov
Just Give Me the Beans!
 
gasparov's Avatar
 
Join Date: Feb 2005
Location: Trento,Italy
Beans: 68
Send a message via MSN to gasparov
HOWTO: Torrent Broadcatching

Background

Broadcatching is the downloading of content that has been made available over the Internet using RSS syndication for listening on mobile devices and personal computers.

The general idea is to use an automated mechanism to aggregate various web feeds and download content for viewing or presentation purposes. (quote from Wikipedia)

Introduction

This script works with particular torrent clients like azureus and mldonkey. These clients must be able to periodically fetch torrents from a directory and put them in the queue. If you need it and you can't do it yourself I can fix the script for torrentflux .
As for feeds not every feed works,you can use direct torrent link feeds (the feed has a link in it,you click on it and you get the torrent,not the web page about torrent details) or feeds from mininova.

Requirements
  • Some basic ones like bash , wget and sed
  • xsltproc (sudo apt-get install xsltproc)
  • A torrent client (see "Introduction")

Set It Up

make a directoy and cd into it

Code:
mkdir scripts
cd scripts
get the tarball
Code:
wget http://www.lucagasperini.com/files/torbcatch.tar.gz
tar -zxvf torbcatch.tar.gz
cd torbcatch
gedit tvrss.sh
and modify the easy CONFIGURATION PARAMETER (is just one)

enable cron

Code:
gedit /etc/crontab
and add this line at the end (change "%USER" with the user you want to run the script , for both instances)
Code:
02 * * * *   %USER     /home/%USER/scripts/torbcatch/tvrss.sh
restart the cron daemon

How it works

The file bp.conf is a simple configuration file that contains the urls of the feeds you want to broacatch in this form

Code:
caseinsensitiveRegExp@http://urltofeed.com/feed.rss
You can use RegExp but you don't have to (I don't), if you leave it empty a wildcard (*) match will be performed.(if so remove the "@" too)

Code:
NonRegExp Example
You are interested in a Video Podcast called "UbuntuCast" but the official feed is unreliable, you can make a search on mininova.org for it.You find out that there are two Podcasters whose show have the same title,one is called "TENFE" and the other "VTZE" so you can change your search parameters and look for "UbuntuCast VTZE".Now it should be better and the results should be a better match.Another problem arises,there are two versions of "UbuntuCast VTZE", one is in HDTV and is 350 Megs the other is with 5.1 sound and is 700 Megs,you don't have 5.1 and you want the 350 megs one. Looking for something like "UbuntuCast VTZE -HR" should do the trick.Ok now the results should be the one you are looking for.Look at the RSS icon with orange background ,thats the rss feed of your results,copy its link and put it in bp.conf.Done

Another example

For obvious reasons I didn't post this part on ubuntuforums, have a look here.It's a small tip for having lots of torrents on a single feed from a releaser.... I'm kinda paranoid.

Conclusions

The first time you run the script all the torrents it finds will be downloaded , after that it remembers the one you already downloaded.Be aware that the first time all the torrents will be added to you client's queue,maybe it could be a good idea to change the directory where the script will move the torrent and change it back again after the first run.
******* has tons of trackers but files shows up later than mininova. Best way is to use an official feed from the releaser.

Credits

Me (gas)
Linc
Mldonkey Community

Happy Broadcatching
__________________
Don't click here
gasparov is offline   Reply With Quote
Old September 14th, 2009   #2
abhiroopb
Fresh Brewed Ubuntu
 
abhiroopb's Avatar
 
Join Date: Apr 2006
Location: Coventry
Beans: 1,362
Ubuntu 9.10 Karmic Koala
Re: HOWTO: Torrent Broadcatching

Hi,

I am interested in this program, but it appears that your site is no longer running.

Could you send me the script please!

Thanks
__________________
Laptop: HP dv5242ea | Core Duo 1.60GHz | 2GB RAM | 320GB SATA | DVD-RAM Matshita UJ 840S | nVidia GeForce Go 7400 256mb | Intel PRO 3945ABG
Tech Blog: TechComet
Get Dropbox
abhiroopb is offline   Reply With Quote
Old October 1st, 2009   #3
h0me5k1n
5 Cups of Ubuntu
 
Join Date: Sep 2005
Beans: 20
Re: HOWTO: Torrent Broadcatching

The original script is here:

http://mldonkey.sourceforge.net/Broadcatch

It downloads torrents from rss feeds and automatically submits them to mldonkey... but could also be customised to download the torrents to a folder (ready to be picked up by a torrent client)

Last edited by h0me5k1n; October 1st, 2009 at 08:11 PM..
h0me5k1n is offline   Reply With Quote
Old October 1st, 2009   #4
abhiroopb
Fresh Brewed Ubuntu
 
abhiroopb's Avatar
 
Join Date: Apr 2006
Location: Coventry
Beans: 1,362
Ubuntu 9.10 Karmic Koala
Re: HOWTO: Torrent Broadcatching

Hi,

Thanks for responding. Actually I posted on another thread and this kind soul wrote a very simple python script that downloads torrents to a folder and transmission watches this folder.

http://www.uluga.ubuntuforums.org/sh...5&postcount=19
__________________
Laptop: HP dv5242ea | Core Duo 1.60GHz | 2GB RAM | 320GB SATA | DVD-RAM Matshita UJ 840S | nVidia GeForce Go 7400 256mb | Intel PRO 3945ABG
Tech Blog: TechComet
Get Dropbox
abhiroopb is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:38 AM.


vBulletin ©2000 - 2010, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. lingonberry