News for hackers. Stuff that matters.
Re:Stream PirateBay movies directly from CLI by dkopi on Monday April 04, 2016 @05:51AM (#11420533)
It seems a lot of the magic behind this comes from Peerflix - a node.js library for streaming torrents.

This is mostly a CLI wrapper for searching piratebay, parsing the results, and then streaming using peerflix. https://github.com/mafintosh/peerflix

I'm curious why thepiratebay npm package wasn't used instead: https://github.com/t3chnoboy/thepiratebay

That said, great usage of cheerio for parsing the returned HTML results. I love how it's as simple as running JQuery like commands on the server side.

Re:Stream PirateBay movies directly from CLI by oniony on Monday April 04, 2016 @06:00AM (#11420577)
A lot of credit for most FOSS software is the various libraries and programming languages they are built upon: I don't think you can take anything away from this project because of it. Indeed if you take the time to look into Peerflix's dependencies (https://github.com/mafintosh/peerflix/blob/master/package.js...) you'll see that it, too, is based upon airplay-js, parse-torrent, torrent-stream, amongst others.

We're at a rather convenient point in time where building a program/app is an exercise in coming up with an idea, researching the alternative components it can be built out of and then spending the time getting them to play nicely together. I wouldn't underestimate the amount of work that entails.

Re:Stream PirateBay movies directly from CLI by dkopi on Monday April 04, 2016 @06:10AM (#11420629)
Great point. This is definitely nice work, and it looks like a great usage of existing tools. Did not intend to come off disregarding the effort.
Re:Stream PirateBay movies directly from CLI by icelancer on Monday April 04, 2016 @01:42PM (#11423772)
>I'm curious why thepiratebay npm package wasn't used instead

They didn't want their work broken due to a random unpublish?

Re:Stream PirateBay movies directly from CLI by dkopi on Monday April 04, 2016 @02:45PM (#11424294)
Given that the dependencies are: "babel-core": "^6.7.4", "babel-polyfill": "^6.7.4", "chalk": "^1.1.3", "cheerio": "^0.20.0", "es6-promise": "^3.1.2", "inquirer": "^0.12.0", "isomorphic-fetch": "^2.2.1", "jsonfile": "^2.2.3", "lodash": "^4.7.0", "meow": "^3.7.0", "ora": "^0.2.1", "peerflix": "^0.32.4"

That's probably not the reason.

Re:Stream PirateBay movies directly from CLI by leshow on Monday April 04, 2016 @01:45PM (#11423794)
it already exists in the form of torrentflix, a project i've contributed to.

you can also stream from more than just TPB