A cli tool to extract magnet links from horriblesubs
This tool allows you to extract all magnet links asscoiated to a 'shows' page on horriblesubs and either print them to stdout or save them to a file. You can also select the resolution you want to have (480p, 720p, 1080p).
Horriblemagnet is written in PHP and requires the xml module. The script was tested on PHP 7.4 but may possibly run on earlier versions.
- PHP >=7.4
- php-xml
The script was tested on Ubuntu 20.04. You can install the required dependencies like this:
apt install php-cli php-xml
Windows is completely untested. Try it and let me know! https://windows.php.net/download/
Horriblemagnet does not have any special switches but only one required parameter.
./horriblemagnet.php <link> [resolution] [output file]