Skip to content

Instantly share code, notes, and snippets.

@hasantayyar
Created October 27, 2011 06:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hasantayyar/1318939 to your computer and use it in GitHub Desktop.
Save hasantayyar/1318939 to your computer and use it in GitHub Desktop.
thepiratebay search with bash
# seean on http://www.commandlinefu.com/commands/view/9581/thepiratebay.org-torrent-search
# usage :
# tpb search
tpb() { wget -U Mozilla -qO - $(echo "http://thepiratebay.org/search/$@/0/7/0" | sed 's/ /\%20/g') | grep -o 'http\:\/\/torrents\.thepiratebay\.org\/.*\.torrent' | tac; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment