Cthulhu is a simple python CLI application that facilitates the streaming of torrents directly from various sources. It uses peerflix to stream video from magnet links directly.
Cthulhu is heavily inspired by Bugswriter's notflix, which was written using shell scripting. All in all, I wrote this program mainly for fun and practice.
Feel free to submit issues and feature requests.
pip3 install requests
pip3 install lxml
npm install -g peerflix
Make sure that /usr/local/bin
exists with the proper permissions. If not, then sudo mkdir -p -m 775 /usr/local/bin
cURL cthulhu to your $PATH and give execute permissions.
sh
sudo curl -sL "https://raw.githubusercontent.com/trianglecirclexyz/cthulhu/main/cthulhu" -o /usr/local/bin/cthulhu
sudo chmod +x /usr/local/bin/cthulhu
- To update, just do curl
again, no need to chmod
anymore.
- To uninstall, remove cthulhu
from your $PATH, for example sudo rm -f /usr/local/bin/cthulhu.
See this example where I could find Better Call Saul S06E01 with an older version of cthulhu
, but it would fail when entering the ID, and after update S06E01 is not found anymore:
```
[email protected] ~ $ cthulhu -s 1337x
Source: 1337x Please make sure your query contains at least 3 characters
Enter search query: better call saul s06e01 Fetching torrents…
ID S/L Size Torrent name 1 3944/1508 3.8 GB Better.Call.Saul.S06E01.1080p.WEB.H264-GLHF 2 1409/273 554.3 MB Better.Call.Saul.S06E01.WEBRip.x264-ION10 3 1395/377 3.8 GB Better.Call.Saul.S06E01.Wine.and.Roses.1080p.AMZN.WEBRip.DDP5.1.x264-NTb 4 1045/506 1.7 GB Better.Call.Saul.S06E01.720p.WEB.H264-GLHF 5 969/349 2.5 GB Better.Call.Saul.S06E01.Wine.and.Roses.1080p.NF.WEBRip.DDP5.1.x264-NTb 6 805/683 249.2 MB Better.Call.Saul.S06E01.720p.WEB.x265-MiNX[TGx] 7 509/215 3.8 GB Better.Call.Saul.S06E01.1080p.WEB.H264-GLHF[TGx] 8 453/117 336.8 MB Better.Call.Saul.S06E01.WEB.x264-PHOENiX 9 299/90 1.4 GB Better.Call.Saul.S06E01.Wine.and.Roses.720p.NF.WEBRip.DDP5.1.x264-NTb 10 275/69 1.7 GB Better.Call.Saul.S06E01.Wine.and.Roses.720p.AMZN.WEBRip.DDP5.1.x264-NTb 11 177/314 584.1 MB Better.Call.Saul.S06E01.1080p.HEVC.x265-MeGusta[TGx] 12 154/47 3.8 GB Better.Call.Saul.S06E01.Wine.and.Roses.1080p.AMZN.WEBRip.DDP5.1.x264-NTb[TGx] 13 120/28 2.5 GB Better.Call.Saul.S06E01.Wine.and.Roses.1080p.NF.WEBRip.DDP5.1.x264-NTb[TGx] 14 119/64 1.7 GB Better.Call.Saul.S06E01.720p.WEB.H264-GLHF[TGx] 15 57/20 4.0 GB Better.Call.Saul.S06E01.Wine.and.Roses.1080p.AMZN.WEBMux.ITA.ENG.DD5.1.x264-BlackBit.mkv 16 43/12 1.4 GB Better.Call.Saul.S06E01.Wine.and.Roses.720p.NF.WEBRip.DDP5.1.x264-NTb[TGx] 17 37/14 1.7 GB Better.Call.Saul.S06E01.Wine.and.Roses.720p.AMZN.WEBRip.DDP5.1.x264-NTb[TGx] 18 30/12 479.3 MB Better.Call.Saul.S06E01.XviD-AFG[TGx]
Select by ID: 3
Invalid torrent identifier
Cleaning /tmp/torrent-stream cache (~0.0B)…
[email protected] ~ $ cthulhu -s 1337x
Source: 1337x Please make sure your query contains at least 3 characters
Enter search query: better call saul s06e01 Fetching torrents…
ID S/L Size Torrent name 1 3944/1508 3.8 GB Better.Call.Saul.S06E01.1080p.WEB.H264-GLHF 2 1409/273 554.3 MB Better.Call.Saul.S06E01.WEBRip.x264-ION10 3 1395/377 3.8 GB Better.Call.Saul.S06E01.Wine.and.Roses.1080p.AMZN.WEBRip.DDP5.1.x264-NTb 4 1045/506 1.7 GB Better.Call.Saul.S06E01.720p.WEB.H264-GLHF 5 969/349 2.5 GB Better.Call.Saul.S06E01.Wine.and.Roses.1080p.NF.WEBRip.DDP5.1.x264-NTb 6 805/683 249.2 MB Better.Call.Saul.S06E01.720p.WEB.x265-MiNX[TGx] 7 509/215 3.8 GB Better.Call.Saul.S06E01.1080p.WEB.H264-GLHF[TGx] 8 453/117 336.8 MB Better.Call.Saul.S06E01.WEB.x264-PHOENiX 9 299/90 1.4 GB Better.Call.Saul.S06E01.Wine.and.Roses.720p.NF.WEBRip.DDP5.1.x264-NTb 10 275/69 1.7 GB Better.Call.Saul.S06E01.Wine.and.Roses.720p.AMZN.WEBRip.DDP5.1.x264-NTb 11 177/314 584.1 MB Better.Call.Saul.S06E01.1080p.HEVC.x265-MeGusta[TGx] 12 154/47 3.8 GB Better.Call.Saul.S06E01.Wine.and.Roses.1080p.AMZN.WEBRip.DDP5.1.x264-NTb[TGx] 13 120/28 2.5 GB Better.Call.Saul.S06E01.Wine.and.Roses.1080p.NF.WEBRip.DDP5.1.x264-NTb[TGx] 14 119/64 1.7 GB Better.Call.Saul.S06E01.720p.WEB.H264-GLHF[TGx] 15 57/20 4.0 GB Better.Call.Saul.S06E01.Wine.and.Roses.1080p.AMZN.WEBMux.ITA.ENG.DD5.1.x264-BlackBit.mkv 16 43/12 1.4 GB Better.Call.Saul.S06E01.Wine.and.Roses.720p.NF.WEBRip.DDP5.1.x264-NTb[TGx] 17 37/14 1.7 GB Better.Call.Saul.S06E01.Wine.and.Roses.720p.AMZN.WEBRip.DDP5.1.x264-NTb[TGx] 18 30/12 479.3 MB Better.Call.Saul.S06E01.XviD-AFG[TGx]
Select by ID: 1 Invalid torrent identifier Cleaning /tmp/torrent-stream cache (~0.0B)…
[email protected] ~ $ z cth
[email protected] ~/P/cthulhu $ git pull
remote: Enumerating objects: 2ne
remote: Counting objects: 100% (24/24), done.
remote: Compressing objects: 100% (17/17), done.
remote: Total 21 (delt
Unpacking objects: 100% (21/21), 4.13 KiB | 302.00 KiB/s, done.
From https://github.com/trianglecirclexyz/cthulhu
6b77e49..695071c -> origin/
Updating 6b77e71
Fast-forward
README.md | 4 ++--
cthulhu | 8 ++++----
2 files changed, 6 insertions(+), 6 deletions(-)
[email protected] ~/P/cthulhu $ kak README.md
[email protected] ~/P/cthulhu $ which cthulhu
/home/kabouik/.local/bin/cthulhu
[email protected] ~/P/cthulhu $ cthulhu -s 1337x Source: 1337x Please make sure your query contains at least 3 characters
Enter search query: better call saul s06e01 Fetching torrents…
No results found.
[email protected] ~/P/cthulhu $ cthulhu -s 1337x Source: 1337x Please make sure your query contains at least 3 characters
Enter search query: better call saul Fetching torrents…
ID S/L Size Torrent name 1 2267/148 216.4 MB Better.Call.Saul.S04E07.HDTV.x264-SVA[eztv] 2 2217/207 857.5 MB Better.Call.Saul.S04E03.720p.HDTV.x264-KILLERS [rarbg] 3 1907/96 247.1 MB Better.Call.Saul.S04E05.HDTV.x264-SVA[eztv] 4 1739/154 206.7 MB Better.Call.Saul.S04E06.HDTV.x264-SVA[eztv] 5 1533/70 307 MB Better.Call.Saul.S04E10.HDTV.x264-SVA [rarbg] 6 1512/145 204.5 MB Better.Call.Saul.S04E02.HDTV.x264-SVA[eztv] 7 1499/115 830.5 MB Better.Call.Saul.S04E07.720p.HDTV.x264-AVS[eztv] 8 1309/67 231.8 MB Better.Call.Saul.S04E04.HDTV.x264-SVA[eztv] 9 1199/91 255.5 MB Better Call Saul S04E08 HDTV x264-SVA [eztv] 10 1146/96 803.8 MB Better.Call.Saul.S04E02.720p.HDTV.x264-AVS[eztv] 11 1082/118 1.9 GB Better.Call.Saul.S05E08.1080p.WEB.H264-XLF[TGx] ⭐ 12 1014/39 1017.2 MB Better.Call.Saul.S04E08.720p.HDTV.x264-AVS [rarbg] 13 1008/254 1 GB Better.Call.Saul.S05E10.720p.WEBRip.x264-XLF[TGx] ⭐ 14 927/289 575.5 MB Better.Call.Saul.S05E03.WEB.H264-XLF[ettv] 15 917/284 1.6 GB Better.Call.Saul.S05E02.1080p.WEB.H264-XLF[TGx] ⭐ 16 901/55 231.9 MB Better.Call.Saul.S04E01.HDTV.x264-SVA[eztv] 17 894/88 225.6 MB Better.Call.Saul.S04E03.HDTV.x264-KILLERS[eztv] 18 880/98 1014.9 MB Better.Call.Saul.S04E05.720p.HDTV.x264-AVS[eztv] 19 843/82 632.2 MB Better.Call.Saul.S05E09.WEB.H264-XLF[ettv] 20 827/41 225.6 MB Better.Call.Saul.S04E03.HDTV.x264-KILLERS [rarbg]
Select by ID: ^C Interrupted.
[email protected] ~/P/cthulhu $ cthulhu -s 1337x Source: 1337x Fetching torrents…
No results found.
[email protected] ~/P/cthulhu $ cthulhu
Enter search query: ^C Inteed
[email protected] ~/P/cthulhu $ cthulhu --help
Usage: cthulhu [options] search-query
Options: -s, --source Changes to specified source --no-clean Avoids deleting the torrent cache --get-magnet Prints the torrent magnet link -l, --list Lists all files in a torrent for selection --vlc Sets the player to vlc
Sources: 1337x nyaa
[email protected] ~/P/cthulhu $ cthulhu -s 1337x Source: 1337x Please make sure your query contains at least 3 characters
Enter search query: better call saul s06e01 Fetching torrents…
No results found. ```
My ~/.local/bin/cthulhu
is a symbolic link to the executable in the git folder.
torrent python python-script stream notflix