Torrentz.eu search shell script

Torrentz.eu is a great meta-search engine collecting info from dozens of torrent hosting sites, such as ThePirateBay.se. You can read through the complete list of scraped sites right here (almost 7M of live torrents indexed as of now, ThePirateBay alone has "only" 3.1M).

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 ;).


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 ;).

8 comments:

  1. http://img51.imageshack.us/img51/3508/fullscr2012022212h07.png


    Doesnt seem to work, not sure why

    ReplyDelete
  2. 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.

    ReplyDelete
  3. oh i see it was written on windows, dos2unix worked. Good script Thanks again

    ReplyDelete
  4. Well, it wasn't written on Windows, only Pastebin converted the line endings to Windows format ;). You're welcome.

    ReplyDelete
  5. hi, nice script but i had some trouble. i made it work for me like this:
    http://pastebin.com/fZPeRfAX

    ReplyDelete
  6. sorry, little errors in transmission_remote_my_wrapper_.sh
    here the correction:
    http://pastebin.com/pWJctmXS

    ReplyDelete
  7. 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?

    ReplyDelete
  8. Nice i have been trying out several different torrent scripts. Ill check this out for sure.

    ReplyDelete