https://github.com/shivajichalise/magnet
Get a torrent's magnet link from CLI and download using qbittorrent
https://github.com/shivajichalise/magnet
bash cli cli-tool magnet-link qbittorrent torrent torrent-client
Last synced: about 2 months ago
JSON representation
Get a torrent's magnet link from CLI and download using qbittorrent
- Host: GitHub
- URL: https://github.com/shivajichalise/magnet
- Owner: shivajichalise
- Created: 2022-01-07T13:13:57.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-01-10T03:42:50.000Z (over 4 years ago)
- Last Synced: 2025-04-12T06:44:51.660Z (about 1 year ago)
- Topics: bash, cli, cli-tool, magnet-link, qbittorrent, torrent, torrent-client
- Language: Shell
- Homepage:
- Size: 2.93 KB
- Stars: 7
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# magnet
a simple bash script which fetches selected torrent's magnet link and downloads using qbittorrent.
> check Bugswriter's [notflix](https://github.com/Bugswriter/notflix) if you want to stream directly rather than downloading. (I copied half of the code from notflix :P)
> NOTE: it requires qbittorrent & dialog to run and uses GNU Core Utilities commands `grep`, `awk`, `sed`, `paste` etc.
```
pacman -S dialog qbittorrent
apt install dialog qbittorrent
```
## Installing
For the current user:
```
curl https://raw.githubusercontent.com/shivajichalise/magnet/main/magnet > ~/usr/local/bin/magnet && chmod +755 ~/usr/local/bin/magnet
```
Or simply copy the `magnet` file to a location in your `$PATH` and make it executable.
## Usage
- run `magnet ` or just `magnet`
- if asked for input give appropriate input
- choose from given options
- torrent client will open; select required files and hit start
## How it works
this script scrapes [1337x.to](https://1337x.to) and gets the magnet link and then opens qbittorrent to download
## Self-Promotion
Star the repository on [Github](https://github.com/shivajichalise/magnet)
Follow [shivajichalise](http://shivajichalise.com.np) on [Github](https://github.com/shivajichalise)