I've written this /bin/sh compatible script mainly because my previous torrent search script for ThePirateBay stopped to function properly and I was just too lazy to rewrite the code to work with TPB's new way of offering torrent downloads -- via magnet links, which are great by the way ;).
For the lazy: HERE's the link to source.
Oh, and just in case you've missed it: you can download an offline copy of TPB's torrent database in format suitable for making and SQLite database and searching torrents completely anonymously. Hell, it's just 90 megs! However, pr0n is not included, so it's only 1,643,194 torrents :P.
OK, so let's go to the point. Here's a screenshot:
As you can see, it has a nice colorized output (um... well, it can be disabled with the -C cmdline switch) and shows first 15 results by default (a max. of 50 due to pagination, sometimes less due to DMCA takedown notices sent to torrentz.eu -- it's quite funny how they just let you know which torrents exactly are they watching :P).
And t3h s0urc3, ofc: see this pastebin, it's more readable and copypastable than listing it here. Be sure to edit the torrent download command at the beginning of the script if you're using client other than Transmission. You can also change the default number of displayed results and output colors if you'd like. Don't forget to leave a comment or drop some spare coin into my PayPal account if you like my works ;).
http://img51.imageshack.us/img51/3508/fullscr2012022212h07.png
ReplyDeleteDoesnt seem to work, not sure why
Strangely enough, Pastebin gave me a file with CRLF line endings when I downloaded it - try runing dos2unix utility on the script. Other than that, I've no idea why it shouldn't work on your system as it runs perfectly even on my OpenWrt router with embedded busybox. Wish you luck.
ReplyDeleteoh i see it was written on windows, dos2unix worked. Good script Thanks again
ReplyDeleteWell, it wasn't written on Windows, only Pastebin converted the line endings to Windows format ;). You're welcome.
ReplyDeletehi, nice script but i had some trouble. i made it work for me like this:
ReplyDeletehttp://pastebin.com/fZPeRfAX
sorry, little errors in transmission_remote_my_wrapper_.sh
ReplyDeletehere the correction:
http://pastebin.com/pWJctmXS
torrentz seems to block access from wget, curl or lynx. It returns HTTP 200 BadClient and no useful data. I've tried various User Agent strings to no avail. Any Ideas?
ReplyDeleteNice i have been trying out several different torrent scripts. Ill check this out for sure.
ReplyDelete