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
Metadata
Release files for pytorrentsearch 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| pytorrentsearch-0.3.0.tar.gz | 44.4 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pytorrentsearch-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 52.8 kB
Release files / pytorrentsearch-0.3.0.tar.gz
| Download URL | pytorrentsearch-0.3.0.tar.gz |
|---|---|
| Size | 44.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b4aaac69bf0432111799580614d893a4624af36e0989091916e97c850c893e7c
|
|
BLAKE2b-256 checksum How to use checksums |
50dcde6f82ad86ac80148b6a2bac251bd97e983feab9d7ab70e873153b75f934
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / pytorrentsearch-0.3.0-py3-none-any.whl
| Download URL | pytorrentsearch-0.3.0-py3-none-any.whl |
|---|---|
| Size | 8.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b06a73faedec0e3150b5c8754430ff4521d6b8a46645f19b41dfcec7538f4129
|
|
BLAKE2b-256 checksum How to use checksums |
3e70cc2eabb7cb2308056324e7c19987c9581715318242273d0b89b6712e2534
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Security for pytorrentsearch 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.