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
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 truelink-1.4.4.tar.gz.
File metadata
- Download URL: truelink-1.4.4.tar.gz
- Upload date:
- Size: 26.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3299f879cfc3c54d8fefdc39dbb3a5fd4843caae4b3b51966d97d653fbcd5ace
|
|
| MD5 |
f90ae06726ecf6358d7bd3fb4da01da4
|
|
| BLAKE2b-256 |
4dfab171b88009ad88c887dd772be872391ef1f547f2b165e4d773b54eacdbb4
|
Provenance
The following attestation bundles were made for truelink-1.4.4.tar.gz:
Publisher:
build.yml on 5hojib/truelink
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
truelink-1.4.4.tar.gz -
Subject digest:
3299f879cfc3c54d8fefdc39dbb3a5fd4843caae4b3b51966d97d653fbcd5ace - Sigstore transparency entry: 435166789
- Sigstore integration time:
-
Permalink:
5hojib/truelink@f85f89f2bc3adf3f683a18e29a380a5c3a6e385f -
Branch / Tag:
refs/heads/main - Owner: https://github.com/5hojib
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build.yml@f85f89f2bc3adf3f683a18e29a380a5c3a6e385f -
Trigger Event:
push
-
Statement type:
File details
Details for the file truelink-1.4.4-py3-none-any.whl.
File metadata
- Download URL: truelink-1.4.4-py3-none-any.whl
- Upload date:
- Size: 42.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f13858334eba65458537d520dafbf65733c8a8871b1bb336755021a078e44a48
|
|
| MD5 |
099c956e2512d914f7aa5eb50db12304
|
|
| BLAKE2b-256 |
7d2bf87d783f91eb33fed64dba3b5d6929b266a8dbccbfc8a0cf8bdf6492bd4d
|
Provenance
The following attestation bundles were made for truelink-1.4.4-py3-none-any.whl:
Publisher:
build.yml on 5hojib/truelink
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
truelink-1.4.4-py3-none-any.whl -
Subject digest:
f13858334eba65458537d520dafbf65733c8a8871b1bb336755021a078e44a48 - Sigstore transparency entry: 435166815
- Sigstore integration time:
-
Permalink:
5hojib/truelink@f85f89f2bc3adf3f683a18e29a380a5c3a6e385f -
Branch / Tag:
refs/heads/main - Owner: https://github.com/5hojib
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build.yml@f85f89f2bc3adf3f683a18e29a380a5c3a6e385f -
Trigger Event:
push
-
Statement type: