Shortzy
A Unofficial Wrapper for Adlinkfly Site and Alternative Sites
·
Report Bug / Request Feature
·
Usage
·
Reference
Shortzy
An Unofficial Python version of Adlinkfly and Alternative Website API wrapper. Used to Short your long link and let you earn from it.
Installation
Install shortzy with pip
pip install shortzy
To Upgrade
pip install --upgrade shortzy
Usage
from shortzy import Shortzy
import asyncio
shortzy = Shortzy('<YOUR API KEY>')
async def main():
link = await shortzy.convert('https://example.com/')
print(link)
asyncio.run(main())
Output: https://droplink.co/mVkra
Available Websites
Available list of Websites
Features
- Single URL Convert
- Batch Convert from List
- Convert from Text
Contributing
Contributions are always welcome!
Reference
Init
from shortzy import Shortzy
import asyncio
shortzy = Shortzy(api_key="Your API Key", base_site="droplink.co")
# Base site defaults to "droplink.co". You can add your own site here which is alternative to this default site
# Please Refer https://github.com/kevinnadar22/shortzy#available-websites for more information
Convert a single URL
convert(link, alias, silently_fail, quick_link) -> str
| Parameter | Type | Description |
|---|---|---|
link |
string |
Required. Long URL Link |
alias |
string |
Custom alias for the link |
silently_fail |
bool |
Raise an exception or not if error ocuurs |
quick_link |
bool |
Returns the quick link |
Example:
async def main():
link = await shortzy.convert('https://www.youtube.com/watch?v=d8RLHL3Lizw')
print(link)
asyncio.run(main())
## Output: https://droplink.co/Ly4fCxZ
## Quick Link: https://droplink.co/st?api=<YOUR API KEY>&url=https://www.youtube.com/watch?v=d8RLHL3Lizw
Bulk Convert
bulk_convert(urls:list, silently_fail, quick_link:bool=False) -> list
| Parameter | Type | Description |
|---|---|---|
urls |
list |
Required. List of URLs to convert |
Example:
async def main():
links = ['https://github.com/', 'https://twitter.com/', 'https://google.com/']
link = await shortzy.bulk_convert(links)
print(link)
asyncio.run(main())
## Output: ['https://droplink.co/ihu1e', 'https://droplink.co/AkY2Nt', 'https://droplink.co/mK1eVTV']
Convert from Text
convert_from_text(text:str, silently_fail:bool=True, quick_link:bool=False) -> str
| Parameter | Type | Description |
|---|---|---|
text |
str |
Required. Text containing Long URLS to short |
Example:
async def main():
text = """
Unstoppable:-https://www.youtube.com/watch?v=330xlOv8p9M
Night Changes:-https://www.youtube.com/watch?v=syFZfO_wfMQ
"""
link = await shortzy.convert_from_text(text)
print(link)
asyncio.run(main())
# Output:
# "Unstoppable:-https://droplink.co/T6jbHlU
# Night Changes:-https://droplink.co/ajIRE"
Get quick link
get_quick_link(link:str)
| Parameter | Type | Description |
|---|---|---|
link |
str |
Required. Long Link |
Example:
async def main():
link = "https://www.youtube.com/watch?v=syFZfO_wfMQ"
quick_link = await shortzy.get_quick_link(link)
print(quick_link)
asyncio.run(main())
## Quick Link: https://droplink.co/st?api=<YOUR API KEY>&url=https://www.youtube.com/watch?v=syFZfO_wfMQ
Support
For support, email jesikamaraj@gmail.com or PM Dev
Roadmap
- Add more integrations
Disclaimer
Licensed under GNU AGPL v3.0.
Selling The Codes To Other People For Money Is Strictly Prohibited.
Credits
Metadata
Release files for shortzy 0.0.8
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 | Actions |
|---|---|---|---|---|
| shortzy-0.0.8.tar.gz | 20.2 kB | Without provenance | Details for shortzy-0.0.8.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| shortzy-0.0.8-py3-none-any.whl | Python 3 | none | any | Details for shortzy-0.0.8-py3-none-any.whl |
Total release size: 42.3 kB
Release files / shortzy-0.0.8.tar.gz
| Download URL | shortzy-0.0.8.tar.gz |
|---|---|
| Size | 20.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9622cc0a2a2c42e9db1b8e2af36da82d133a047887453a64deccf1da79c89852
|
|
BLAKE2b-256 checksum How to use checksums |
1f38d3c4c2898dee0cfc21611ea264896259b9526305a47b7b6d62a428c2867d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.2
|
Release files / shortzy-0.0.8-py3-none-any.whl
| Download URL | shortzy-0.0.8-py3-none-any.whl |
|---|---|
| Size | 22.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7f233cd02a51b3703a9896d9082092417081f4ff286dfe2cfa9fd052744fe40f
|
|
BLAKE2b-256 checksum How to use checksums |
9672701fdcfb55d876862dd7b53fefb81caf7fab9f2dc5bc9fcd064d6b6e8b10
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.2
|
Security for shortzy 0.0.8
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.