Skip to main content

Downloader YouTube Persian

Project description

Downloader Youtube 

This library was created to create a YouTube download link, you can get the download link of that video in different formats by sending the original link of the video from the YouTube site.
You can use this library in web or desktop or mobile projects, etc. according to the information below.
Note: There is no prerequisite.


How it works?

Use the following command to install this library

pip install YTDPersian

Link preparation: Send the video link to the library

input : string

output : no

from YTDPersian import download
var = download("URL")

Option : Information you can get through this library

  1. Information Video
  2. Quality Video
  3. Link Download

1. Information Video

This method has an input, the name of this input is ‘List’, if it is false, the output is returned as a string; If it is true, the output is returned as a list of the dictionary. It is false by default, so we can leave nothing as input.

List = False

from YTDPersian import download
var = download("URL")
get_info = var.InfoVideo()
print(get_info)
_______ output ________
Title : {textTitle}     -     Durition : {textDescription}
Url : {textUrl}

List = True

from YTDPersian import download
var = download("URL")
get_info = var.InfoVideo(True)
print(get_info)
_______ output ________
[{ 'Title' : {textTitle}, 'Durition' : {textDescription}, 'Url' : {textUrl} }]

2. Quality Video

This method has an input, the name of this input is ‘List’, if it is false, the output is returned as a string; If it is true, the output is returned as a list of the dictionary. It is false by default, so we can leave nothing as input.

List = False

from YTDPersian import download
var = download("URL")
get_quality = var.ShowQuality()
print(get_info)
_______ output ________
Type : mp4  Quality : 360 Audio : Yes
Type : mp4  Quality : 720 Audio : Yes
...

List = True

from YTDPersian import download
var = download("URL")
get_quality = var.ShowQuality(True)
print(get_info)
_______ output ________
[
{ 'Type' : {textType}, 'Quality' : {textQuality}, 'Audio' : {textStatusAudio} },
{ 'Type' : {textType}, 'Quality' : {textQuality}, 'Audio' : {textStatusAudio} },
{ 'Type' : {textType}, 'Quality' : {textQuality}, 'Audio' : {textStatusAudio} },
...
]

3. Link Download

This method has two inputs, one input as "type" and one input as "quality". To get the download link, you must send the file type and video quality as a string to this method so that the download link will be sent to you. Display, if you do not enter the type and quality correctly, you will receive the text "No Result".

from YTDPersian import download
var = download("URL")
get_link = var.GetLink("{TypeVideo}", "{QualityVideo}")
print(get_link)
_______ output ________
"{textLinkDownload}"

The great scientific and educational collection of the SARZAMIN DANESH thanks you.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

YTDPersian-1.0.10.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

YTDPersian-1.0.10-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file YTDPersian-1.0.10.tar.gz.

File metadata

  • Download URL: YTDPersian-1.0.10.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.7

File hashes

Hashes for YTDPersian-1.0.10.tar.gz
Algorithm Hash digest
SHA256 49bb8c00722841b895555c05ee965b15a7b7816aab63415a55f0ca13cbd8bdce
MD5 b7de261cfff095417c44318fd2570312
BLAKE2b-256 b0590ddc127c381dc57765da87aef47ee104819f5473818ecedbda297d369b78

See more details on using hashes here.

File details

Details for the file YTDPersian-1.0.10-py3-none-any.whl.

File metadata

  • Download URL: YTDPersian-1.0.10-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.7

File hashes

Hashes for YTDPersian-1.0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 a6804cd0d42584c7b0c998068fb48ac57ac9fe22d227c24b69fd0fa5e231a896
MD5 08d4b73a6c200bc03e4eb552d24f4588
BLAKE2b-256 33a34eb0614be591aca62f84d90f23637fff755c5944c6a749880a11f33a80ea

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page