Coder Social home page Coder Social logo

magnet's Introduction

magnet

Search. Select. Stream.

magnet is a command-line torrent search scraper for magnet links. It can pass a selected magnet (and additional parameters) through to peerflix to start downloading (and streaming) the search result automatically. Or you could pipe the output from magnet into your preferred torrent utility!

This utility gets search results and magnet links from thepiratebay.org. The responsibility lies upon the user to not download malicious, false or illegal material using this tool.

The search isn't limited to just video, of course!

$ magnet "Ubuntu" 1 --

Usage

Basic

Search:
$ magnet "Night of the Living Dead 1968"
1: Night Of The Living Dead 1968 720p BluRay x264 CtrlHD PublicHD
2: Night Of The Living Dead 1968 720p BRRip x264 x0r
3: Night of the Living Dead 1968 BDRip hV
4: Night Of The Living Dead 1968 1080p Bluray x264 hV N0 RaRs
5: Night Of The Living Dead 1968 720p BDrip x264 AAC V4G
Select:
$ magnet "Night of the Living Dead 1968" 1
magnet:?xt=urn:btih:F17FB68CE756227FCE325D0513157915F5634985&dn=night+of+the+living+dead+1968+720p+brrip+x264+x0r&tr=udp%3A%2F%2Fopen.demonii.com%3A1337%2Fannounce
Stream:

Supply -- and the magnet is sent to peerflix. All options after -- are passed to peerflix.

$ magnet "Night of the Living Dead 1968" 1 -- --vlc
# this starts downloading the torrent via peerflix

Advanced

More/fewer results

You can choose how many results to show with the --rows option:

$ magnet --rows=10 "Night of the Living Dead 1968"
1: Night of the Living Dead 1968 (1080p, x265, AAC 1.0)
2: George Romero 1968-1985 Night Dawn and Day Of The Living Dead
3: Night of the Living Dead[1968]DvDrip[Eng]-Stealthmaster.avi
4: Night.Of.The.Living.Dead.1968.720p.BluRay.x264-CtrlHD [PublicHD]
5: Night Of The Living Dead 1968 Colorized DVDrip x264-[MULVAcoded]
6: Night of the Living Dead (1968) - In Colour - DivX  [akhiugo]
7: Night Of The Living Dead (Millennium Edition; 1968).avi
8: Night of the Living Dead (1968)
9: Night Of The Living Dead [1968 - 30th Anniversary Edition]
10: Night Of The Living Dead 1968 720p_sujaidr
Download using other torrent clients

You may prefer to use another torrent client using the output from magnet

# rtorrent
$ tr=`magnet "Night of the Living Dead 1968" 1`
$ rtorrent "$tr"

# clipboard (macOS) to paste into a GUI torrent client
$ magnet "Night of the Living Dead 1968" 1 | pbcopy

# clipboard (X on GNU/Linux) to paste into a GUI torrent client
$ magnet "Night of the Living Dead 1968" 1 | xclip -i -sel clipboard

Note that Night of the Living Dead [1968] is in the public domain. Download responsibly.

Installation

npm install -g magnet-cli
# optional, if you want to stream/download using '--' as shown in the Basic Usage section:
npm install -g peerflix

magnet's People

Contributors

lorepozo avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.