encurtanet-0.0.0.0.4
توضیحات
Wrappper for https://encurta.net/api
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | encurtanet-0.0.0.0.4 |
| نام | encurtanet |
| نسخه کتابخانه | 0.0.0.0.4 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Marcuth |
| ایمیل نویسنده | marcuth2006@gmail.com |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/encurtanet/ |
| مجوز | MIT License |
# Install
```
pip install encurtanet
```
# Simple use example
```py
from encurtanet import EncurtaNet, NO_ADS, INTERSTITIALS_ADS
shortener = EncurtaNet("YOUR API TOKEN HERE")
url_info = shortener.shorten(
url="https://1marcuth.github.io/", # URL you want to shorten
alias="url-alias", # URL alias
is_text_format=False, # Whether the result from the server is going to be text
ads_type=INTERSTITIALS_ADS # Ads type, you can define two types, there is no way to define banner and also you don't need to define if you want url with ads
)
url_info.get_raw_data() # Result of all
url_info.get_shortened_url() # Resulting URL
url_info.get_status() # Resulting status ("success" | "error")
url_info.get_message() # Resulting message (if the api sent a message)
```
نحوه نصب
نصب پکیج whl encurtanet-0.0.0.0.4:
pip install encurtanet-0.0.0.0.4.whl
نصب پکیج tar.gz encurtanet-0.0.0.0.4:
pip install encurtanet-0.0.0.0.4.tar.gz