From 499a9e32cb5102dbdf9c5d738d78d7e1aa3c5f27 Mon Sep 17 00:00:00 2001 From: lalanza808 Date: Sat, 28 Mar 2015 07:02:57 -0700 Subject: [PATCH] Updating readme to include instructions. Updating some script code --- readme.md | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/readme.md b/readme.md index ff46cd5..7cc1dda 100644 --- a/readme.md +++ b/readme.md @@ -1,18 +1,35 @@ # Pirate -Command line HTML parser/scraper used for grabbing torrents from [ThePirateBay](https://thepiratebay.se). +Command line HTML parser/scraper used for grabbing torrents from [ThePirateBay](https://thepiratebay.se). Downloads torrents using command line program, transmission-daemon. Initially made for the older version with torrents hosted from a separate subdomain, but now modified for grabbing magnet links instead. ---- +## Requirements + +This script was written in Python version 2.7. Version 3 compatibility requires rewriting some code, and may be done at a later time. Pull requests welcome. + +This script depends on 3 external Python libraries. Please ensure the following are installed to the system: + + * transmissionrpc + * requests + * beautifulsoup4 + +If pip is installed, just run: + +``` +pip install transmissionrpc requests beautifulsoup4 +``` + ## Usage Place the script somewhere in your executable path. I like ~/bin ``` $ mkdir ~/bin -$ echo 'PATH=$PATH:~/bin' > .bashrc +$ echo 'PATH=$PATH:~/bin' >> ~/.bashrc && source ~/.bashrc +$ cp pirate/pirate.py ~/bin ``` Then just run it