No distraction way to find torrents
Project description
PyTorrentSearch
CLI + Python library to search for and parse magnet links from the Internet.
It leverages well known search engines such as Yandex, Google and DuckDuckGo. In my tests only Google was able to work reliably.
If you already have the website link you can just paste it as it would be a query then it will look for all magnet links that it can find in the raw HTML.
The idea is to quickly classify good sites and bad sites based on if the magnet link is already in the base HTML without having to load the JavaScript crap.
DISCLAIMER: Use at your own risk. This software doesn't store or provide illegal content by itself, it's only a search tool.
Installation & Usage
Run directly without installation using uvx:
uvx pytorrentsearch "your search query"
Or install globally:
uv tool install pytorrentsearch
pytorrentsearch "your search query"
You can also provide a direct URL to parse:
uvx pytorrentsearch "https://example.com/torrent-page"
Development
This project uses mise for tool management and uv for Python dependency management.
Setup
# Install mise (if not already installed)
# See: https://mise.jdx.dev/getting-started.html
# Install tools (uv, ruff)
mise install
# Install Python dependencies
uv sync
Available Commands
# Format code
mise run fmt
# Run linter
mise run lint
# Run tests
mise run test
# Build package
mise run build
# Clean build artifacts
mise run clean
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pytorrentsearch-0.3.0.tar.gz.
File metadata
- Download URL: pytorrentsearch-0.3.0.tar.gz
- Upload date:
- Size: 44.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b4aaac69bf0432111799580614d893a4624af36e0989091916e97c850c893e7c
|
|
| MD5 |
5fceb7f3d99ce9057760e656730b861d
|
|
| BLAKE2b-256 |
50dcde6f82ad86ac80148b6a2bac251bd97e983feab9d7ab70e873153b75f934
|
File details
Details for the file pytorrentsearch-0.3.0-py3-none-any.whl.
File metadata
- Download URL: pytorrentsearch-0.3.0-py3-none-any.whl
- Upload date:
- Size: 8.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b06a73faedec0e3150b5c8754430ff4521d6b8a46645f19b41dfcec7538f4129
|
|
| MD5 |
493d69948cc84dacbcbc0c8e1a8ffcad
|
|
| BLAKE2b-256 |
3e70cc2eabb7cb2308056324e7c19987c9581715318242273d0b89b6712e2534
|