1.0.8 • Published 7 years ago
magnet-scrape-cli v1.0.8
magnet-scrape
CLI wrapper for magnet-scrape
- magnet-scrape works with any site that contains magnet links in the response!
Install
npm i -g magnet-scrape-cliUsage
curl https://domain.tld/search?q=example | magnet-scrape | head -1Advanced Usage
Copy link to clipboard: curl & xclip
curl -GL 'https://thepiratebay.org/s/?apps=on\&page=0\&orderby=99' --data-urlencode "q=ubuntu desktop" | magnet-scrape | head -1 | xclip -sel clipboard -iDownload Ubuntu Desktop: curl & aria2
aria2c $(curl -GL 'https://thepiratebay.org/s/?apps=on\&page=0\&orderby=99' --data-urlencode "q=ubuntu desktop" | magnet-scrape | head -1)Stream videos: curl & peerflix
#!/bin/bash
set -e
peerflix $(curl -GL 'https://thepiratebay.org/s/?video=on\&page=0\&orderby=99' --data-urlencode "q=$*" | magnet-scrape | head -1)