Coder Social home page Coder Social logo

cab-1729 / baywatch Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 64 KB

A command-line program to browse torrents from the infamous PirateBay.

License: GNU Affero General Public License v3.0

Perl 100.00%
api colors command-line download e-book movie perl piracy piratebay reverse-engineer

baywatch's Introduction

Baywatch

download

A command-line program to browse torrents from the infamous PirateBay.

Terminal colors are used to be aesthetically pleasing. The interface is designed to be as minimal as possible. This project was heavily inspired by torrtux. In fact the whole reason why I wrote this was that I saw a video on torrtux but I couldn't find the program anywhere.

This project has no affiliation with the site PirateBay. The code for this project was written by reverse engineering the website.

Usage

A demonstration.cast file is provided in the repo. This can be run with asciinema to get an idea what this looks like

  1. Run the Perl script and you will be prompted for a search string.
  2. Above the prompt are displayed the categories that will be searched.
  3. If you want to change the categories, press enter without providing any search.
  4. You will be prompted to enter either y or n for each category, y indicating you want that category to be searched, n indicating the opposite. All other keys will be ignored.
  5. After the search is complete you will be shown a list of all the torrents with relevant details shown in different colors. You may scroll up with the help of your terminal emulator/multiplexer.
  6. After you have decided on the torrent, enter the number in purple on the leftmost column.
  7. Relevant details will be shown and the following prompt will appear.
Press:
        d to view description
        v to view magnet link
        c to copy magnet link to clipboard
        t to send to transmission-client
        b to go back
  1. Press the key to activate the option you see fit. You choose multiple options as the prompt is still valid after the keys are pressed.
  2. If you do not use transmission-cli, then you may copy the magnet link and use it in your torrent client of choice.
  3. To go back to the torrent prompt enter b as instructed
  4. You will be taken back to the torrent prompt where you may enter the number of another torrent number and do the same.
  5. If you wish to go back to search a new torrent, press enter leaving the torrent prompt blank.
  6. Repeat
  7. If you wish to exit the program at any point, close the terminal buffer or press Crtl+C .

Dependencies

Perl and Perl modules:

  • LWP::UserAgent
  • URI::Encode
  • JSON::Parse
  • Term::ReadKey
  • Term::ANSIColor
  • Number::Format
  • Clipboard

Contributing

One must remember that this project aims to be very minimal. Issues, pull requests and suggestions are welcome as long as there is an understanding that I am not obliged to make changes I don't deem necessary. If you feel something is wrong or lacking with the project, you have the right to fork it and go your own way.

baywatch's People

Contributors

cab-1729 avatar

Stargazers

 avatar  avatar

Watchers

 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.