{"id":22330448,"url":"https://github.com/tuvimen/torge","last_synced_at":"2025-04-07T18:13:13.693Z","repository":{"id":208412413,"uuid":"720791014","full_name":"TUVIMEN/torge","owner":"TUVIMEN","description":"A shell script for searching for links on torrent sites","archived":false,"fork":false,"pushed_at":"2025-02-26T16:10:52.000Z","size":2608,"stargazers_count":93,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-31T17:17:39.191Z","etag":null,"topics":["1337x","csv","json","libgen","limetorrents","nyaa","rarbg","reliq","shell","thepiratebay","torrent-search"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TUVIMEN.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-19T16:03:31.000Z","updated_at":"2025-03-26T05:17:13.000Z","dependencies_parsed_at":"2024-08-14T10:49:37.020Z","dependency_job_id":"2ba6c3ff-e96e-4905-9356-79f5979ba3e7","html_url":"https://github.com/TUVIMEN/torge","commit_stats":null,"previous_names":["tuvimen/torge"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TUVIMEN%2Ftorge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TUVIMEN%2Ftorge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TUVIMEN%2Ftorge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TUVIMEN%2Ftorge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TUVIMEN","download_url":"https://codeload.github.com/TUVIMEN/torge/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247704571,"owners_count":20982298,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["1337x","csv","json","libgen","limetorrents","nyaa","rarbg","reliq","shell","thepiratebay","torrent-search"],"created_at":"2024-12-04T04:06:55.206Z","updated_at":"2025-04-07T18:13:13.673Z","avatar_url":"https://github.com/TUVIMEN.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# torge\n\nA shell script for searching for links on torrent sites.\n\n![example](example.gif)\n\n## Supported sites\n\n - thepiratebay\n - limetorrents\n - rarbg (as for now getting magnet link is being blocked by cloudflare)\n - nyaa\n - 1337x\n - libgen\n\n## Requirements\n\n - [reliq](https://github.com/TUVIMEN/reliq)\n - xclip or xsel (optional, used for clipboard)\n - [jq](https://github.com/jqlang/jq) (optional, used for `--json` option)\n\n## Installation\n\n    install -m 755 torge /usr/bin\n\n### AUR\n\n    yay -S torge\n\n## Aliases\n\nIt's quite beneficial to alias sites in your config to avoid needless typing, here's a list of proposed ones:\n\n    alias tpb='torge tpb'\n    alias libgen='torge libgen'\n    alias limetorrents='torge lt'\n    alias nyaa='torge nyaa'\n    alias 1337x='torge 1337x'\n    alias rarbg='torge rarbg'\n\n## Usage\n\nJust type 'torge source your search', choose what you want and the link will be copied to your clipboard. You can choose multiple results by separating their line number with space.\n\nNote that some options are specific to certain sites (like sorting), you can read about it by typing\n\n    torge SOURCE -h\n\nUniversal options are described in\n\n    torge -h\n\nSearch sorting by date\n\n    torge 1337x -s date iso\n\nSearch for the smallest linux isos on thepiratebay\n\n    torge tpb -s size -r linux iso\n\nSearch different domain for linux isos and change delimiter to space\n\n    torge tpb -D ' ' -d 'http://otherdomain.to' 'linux iso'\n\nSearch for the biggest lossless audio\n\n    torge nyaa -c audio-lossless -s size audio\n\nSearch for scientific articles about evolution on 2nd page\n\n    torge libgen -p 2 -m science evolution\n\nSearch for Lovecraft's fiction in pdf format\n\n    torge libgen -F pdf -m fiction lovecraft\n\nSearch search for 'The Road to Serfdom' ordered by size, reversed\n\n    torge libgen -r -o size the road to serfdom\n\nShow only name, seeds and date searching for linux\n\n    torge limetorrents -a name,seeds,date linux\n\nOutput search results in csv (by default delimited by `\\t`, can be changed with `-D` option)\n\n    torge SOURCE --csv -D '\\t' your search query\n\nThe first line printed will be a csv header unless `--no-csv-header` option is used.\n\nNote that most sites do not store magnet links in search pages and by default the above returns whatever links it finds. If you want to ensure that you get magnet links (or links in case of `libgen`) use `--link-conv` option with `--csv`. Although there will be noticable delay as this will go through all pages (but only if necessary).\n\nOutput serch results in json (`--link-conv` also works with it)\n\n    torge SOURCE --json your search query\n\nResulting json will have `link` field being search page from which results were taken, `site` field naming site, and `results` array. Dictionaries in `results` array have fields depending only on `site` e.g. `thepiratebay` has `author` field but `limetorrents` does not.\n\nFor example running\n\n    torge tpb --json linux iso | jq .\n\nwill return\n\n```json\n{\n  \"link\": \"https://tpb.party/search/linux.iso/1/7/0\",\n  \"site\": \"thepiratebay\",\n  \"results\": [\n    {\n      \"category\": \"Windows\",\n      \"size\": \"2.92 GiB\",\n      \"date\": \"02-18-2019\",\n      \"name\": \"Kali Linux 64 Bit 2018.4 - 3GB-ISO\",\n      \"seeders\": \"9\",\n      \"leechers\": \"0\",\n      \"author\": \"AdithyaA\",\n      \"link\": \"magnet:?xt=urn:btih:1A17DF934566F21B12489987F070671223B23A9D\u0026dn=Kali+Linux+64+Bit+2018.4+-+3GB-ISO\u0026tr=http%3A%2F%2Fp4p.arenabg.com%3A1337%2Fannounce\u0026tr=udp%3A%2F%2F47.ip-51-68-199.eu%3A6969%2Fannounce\u0026tr=udp%3A%2F%2F9.rarbg.me%3A2780%2Fannounce\u0026tr=udp%3A%2F%2F9.rarbg.to%3A2710%2Fannounce\u0026tr=udp%3A%2F%2F9.rarbg.to%3A2730%2Fannounce\u0026tr=udp%3A%2F%2F9.rarbg.to%3A2920%2Fannounce\u0026tr=udp%3A%2F%2Fopen.stealth.si%3A80%2Fannounce\u0026tr=udp%3A%2F%2Fopentracker.i2p.rocks%3A6969%2Fannounce\u0026tr=udp%3A%2F%2Ftracker.coppersurfer.tk%3A6969%2Fannounce\u0026tr=udp%3A%2F%2Ftracker.cyberia.is%3A6969%2Fannounce\u0026tr=udp%3A%2F%2Ftracker.dler.org%3A6969%2Fannounce\u0026tr=udp%3A%2F%2Ftracker.internetwarriors.net%3A1337%2Fannounce\u0026tr=udp%3A%2F%2Ftracker.leechers-paradise.org%3A6969%2Fannounce\u0026tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A6969%2Fannounce\u0026tr=udp%3A%2F%2Ftracker.opentrackr.org%3A1337\u0026tr=udp%3A%2F%2Ftracker.pirateparty.gr%3A6969%2Fannounce\u0026tr=udp%3A%2F%2Ftracker.tiny-vps.com%3A6969%2Fannounce\u0026tr=udp%3A%2F%2Ftracker.torrent.eu.org%3A451%2Fannounce\"\n    },\n    {\n      \"category\": \"UNIX\",\n      \"size\": \"2.74 GiB\",\n      \"date\": \"01-29-2016\",\n      \"name\": \"Kali Linux Amd64, [Iso - MultiLang] [TNTVillage]\",\n      \"seeders\": \"4\",\n      \"leechers\": \"1\",\n      \"author\": \"mykons\",\n      \"link\": \"magnet:?xt=urn:btih:5AEC5EE9F2D044316FE1DE29D221452103CEB958\u0026dn=Kali+Linux+Amd64%2C+%5BIso+-+MultiLang%5D+%5BTNTVillage%5D\u0026tr=http%3A%2F%2Fp4p.arenabg.com%3A1337%2Fannounce\u0026tr=udp%3A%2F%2F47.ip-51-68-199.eu%3A6969%2Fannounce\u0026tr=udp%3A%2F%2F9.rarbg.me%3A2780%2Fannounce\u0026tr=udp%3A%2F%2F9.rarbg.to%3A2710%2Fannounce\u0026tr=udp%3A%2F%2F9.rarbg.to%3A2730%2Fannounce\u0026tr=udp%3A%2F%2F9.rarbg.to%3A2920%2Fannounce\u0026tr=udp%3A%2F%2Fopen.stealth.si%3A80%2Fannounce\u0026tr=udp%3A%2F%2Fopentracker.i2p.rocks%3A6969%2Fannounce\u0026tr=udp%3A%2F%2Ftracker.coppersurfer.tk%3A6969%2Fannounce\u0026tr=udp%3A%2F%2Ftracker.cyberia.is%3A6969%2Fannounce\u0026tr=udp%3A%2F%2Ftracker.dler.org%3A6969%2Fannounce\u0026tr=udp%3A%2F%2Ftracker.internetwarriors.net%3A1337%2Fannounce\u0026tr=udp%3A%2F%2Ftracker.leechers-paradise.org%3A6969%2Fannounce\u0026tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A6969%2Fannounce\u0026tr=udp%3A%2F%2Ftracker.opentrackr.org%3A1337\u0026tr=udp%3A%2F%2Ftracker.pirateparty.gr%3A6969%2Fannounce\u0026tr=udp%3A%2F%2Ftracker.tiny-vps.com%3A6969%2Fannounce\u0026tr=udp%3A%2F%2Ftracker.torrent.eu.org%3A451%2Fannounce\"\n    },\n  ]\n}\n```\n\nMy fzf integration that adds magnets to transmission-remote or copies wget command downloading the books into the clipboard\n\n```shell\nftorge() {\n    res=\"$(torge \"$@\" --no-clipboard --no-prompt --choose 'fzf --ansi --multi | cut -f1 | paste -sd ,')\"\n    [ \"$?\" -ne '0' ] \u0026\u0026 return\n    if [ \"$1\" = 'libgen' ]\n    then\n        {\n        echo -n 'wget '\n        sed \"s/^/'/;s/$/'/\" \u003c\u003c\u003c \"$res\" | paste -sd ' '\n        } | xclip -r -sel clip\n    else\n        for i in $res\n        do\n            transmission-remote -a \"$i\"\n        done\n    fi\n}\n```\n\n![example2](example2.gif)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftuvimen%2Ftorge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftuvimen%2Ftorge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftuvimen%2Ftorge/lists"}