Extract direct download links from various URL formats
Project description
TrueLink
A Python library for resolving media URLs to direct download links from various file hosting services.
Features
- Asynchronous: Built with
async/awaitfor efficient handling of multiple requests. - Easy to use: Simple API with intuitive method names.
- Extensible: Support for multiple file hosting platforms.
- Caching: Built-in caching for faster resolution of repeated requests.
- Error handling: Robust error handling for various edge cases.
- URL validation: Built-in URL validation before processing.
- Type-hinted: Fully type-hinted codebase for better readability and maintainability.
Installation
pip install truelink
Quick Start
import asyncio
from truelink import TrueLinkResolver
async def main():
# Check if a URL is supported without creating an instance
if TrueLinkResolver.is_supported("https://buzzheavier.com/rnk4ut0lci9y"):
print("BuzzHeavier is supported!")
resolver = TrueLinkResolver()
url = "https://buzzheavier.com/rnk4ut0lci9y"
try:
result = await resolver.resolve(url)
print(type(result))
print(result)
except Exception as e:
print(f"Error processing {url}: {e}")
asyncio.run(main())
Documentation
For more information, see the documentation.
Community
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
truelink-1.4.1.tar.gz
(26.4 kB
view details)
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
truelink-1.4.1-py3-none-any.whl
(39.1 kB
view details)
File details
Details for the file truelink-1.4.1.tar.gz.
File metadata
- Download URL: truelink-1.4.1.tar.gz
- Upload date:
- Size: 26.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d34b6de3c4d89e8de9e965c02deebd0f77dc24ab6bdd8aac53093802727583bc
|
|
| MD5 |
2ffee9263cf942254cbefcc091c38a23
|
|
| BLAKE2b-256 |
0a880b28b0fbdd36749cb64cb43bd4063b8e94f70aed3e6b72377a2aae61229c
|
File details
Details for the file truelink-1.4.1-py3-none-any.whl.
File metadata
- Download URL: truelink-1.4.1-py3-none-any.whl
- Upload date:
- Size: 39.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c5dbd9d6fe5cade682d6fdd7346e358e39f1b579907e847bb3fb90a4dc52099a
|
|
| MD5 |
6664ae0d9cc76811c0d26530fb465c82
|
|
| BLAKE2b-256 |
7471f16c7ffeb0831735b3a5dd46f1f917ae982e59db94628e62bbab0d0996e9
|