PitchHut logo
Effortlessly search and retrieve links from torrent sites.
Pitch

Torge is a handy shell script designed to simplify the search for torrent links across multiple sites. With support for various popular platforms and customizable aliases, Torge streamlines the process, making it efficient to find the desired links and copy them directly to your clipboard.

Description

torge is a versatile shell script designed for searching and obtaining links from various torrent sites. This tool streamlines the process of finding torrents, enabling users to quickly locate content across several sources with just a few commands.

Supported Sites

torge supports a variety of torrent sites, including:

  • The Pirate Bay
  • LimeTorrents
  • RARBG (note: access may be blocked by Cloudflare for magnet links)
  • Nyaa
  • 1337x (uses an unofficial clone due to Cloudflare restrictions on the official site; it is advisable to verify if the official site is accessible)
  • Libgen

Key Features

  • Easy Integration: Enhance usability by creating aliases for frequently used searches:

    alias tpb='torge tpb'
    alias libgen='torge libgen'
    alias limetorrents='torge lt'
    alias nyaa='torge nyaa'
    alias 1337x='torge 1337x'
    alias rarbg='torge rarbg'
    
  • Flexible Search Options: Utilize different commands to refine search results by date, size, or other criteria. Examples include:

    • Search for the smallest Linux ISOs on The Pirate Bay:

torge tpb -s size -r linux iso ```

  • Search for scientific articles about evolution on Libgen:

torge libgen -p 2 -m science evolution ```

  • Custom Output: Tailor search results format through options such as CSV or JSON. For instance, outputting results in CSV format:

torge SOURCE --csv -D '\t' your search query


- **Additional Functionalities**: Integrate with your clipboard or transmission tools for enhanced efficiency:
```shell
ftorge() {
    res="$(torge "$@" --no-clipboard --no-prompt --choose 'fzf --ansi --multi | cut -f1 | paste -sd ,')"
    [ "$?" -ne '0' ] && return
    if [ "$1" = 'libgen' ]; then
        {
            echo -n 'wget '
            sed "s/^/'/;s/$/'/" <<< "$res" | paste -sd ' '
        } | xclip -r -sel clip
    else
        for i in $res; do
            transmission-remote -a "$i"
        done
    fi
}

This simplified scripting solution for torrent link searches allows easier access to content, and added configurations enable tailored usage to fit various needs. Ideal for users who often toggle between multiple sites to find desired torrents.

0 comments

No comments yet.

Sign in to be the first to comment.