Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rtuszik/magnetizer
bulk convert .torrent to magnet
https://github.com/rtuszik/magnetizer
Last synced: 15 days ago
JSON representation
bulk convert .torrent to magnet
- Host: GitHub
- URL: https://github.com/rtuszik/magnetizer
- Owner: rtuszik
- Created: 2024-01-09T21:22:27.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-01-09T21:33:53.000Z (12 months ago)
- Last Synced: 2024-12-12T15:16:27.527Z (22 days ago)
- Language: Python
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Magnetizer
Magnetizer is a Python script that generates magnet links from `.torrent` files. It can process both individual torrent files and directories containing multiple torrent files. For a single file, it outputs the magnet link directly in the command line interface. For a directory, it saves the magnet links to both a `.txt` and a `.csv` file.
## Requirements
- Python 3.x
- bencodepy
- tkinter (usually comes pre-installed with Python)## Install bencodepy
Install the `bencodepy` package. You can install it using pip:
```bash
pip install bencodepy
```## Usage
1. Run the script using Python:
```bash
python Magnetizer.py
```2. The script will prompt you to choose between processing a single file or a folder:
- Type `file` to select an individual `.torrent` file.
- Type `folder` to select a folder containing multiple `.torrent` files.3. Depending on your choice, a file dialog window will open. Select the file or folder as required.
4. If you selected:
- A single file, the magnet link will be displayed in the CLI.
- A folder, the magnet links for all `.torrent` files in the folder will be saved in `magnet_links.txt` and `magnet_links.csv`.