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.
- 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():
resolver = TrueLinkResolver()
url = "https://buzzheavier.com/rnk4ut0lci9y"
try:
if resolver.is_supported(url):
result = await resolver.resolve(url)
print(type(result))
print(result)
else:
print(f"URL not supported: {url}")
except Exception as e:
print(f"Error processing {url}: {e}")
asyncio.run(main())
Documentation
For more information, see the documentation.
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.2.0.tar.gz
(27.6 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.2.0-py3-none-any.whl
(43.5 kB
view details)
File details
Details for the file truelink-1.2.0.tar.gz.
File metadata
- Download URL: truelink-1.2.0.tar.gz
- Upload date:
- Size: 27.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
74779da3ad2713de2ee26c6200a3cab321680d6011be87b962a5941fffef9697
|
|
| MD5 |
546ff4e0c9e18ae2b078c4a4345121ee
|
|
| BLAKE2b-256 |
10af6ca5da1d31af9cbcfe69b8e31e1f5608ceda09d310afdb3d8c5c39d794f6
|
File details
Details for the file truelink-1.2.0-py3-none-any.whl.
File metadata
- Download URL: truelink-1.2.0-py3-none-any.whl
- Upload date:
- Size: 43.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c23ad573e20c2b0a2e40f7c0f8b20f0c987a59ede39a8d9f680b721acefa72bd
|
|
| MD5 |
3ed4a7c9f784ce1acbe7fc1075642f24
|
|
| BLAKE2b-256 |
f41868eeaccd06dbf3cf5c390731adc00ba83310815e8598169cacd9c006f54c
|