Python Return YouTube Dislike
A simple Python library to work with the Return YouTube Dislike API
PyPi page: https://pypi.org/project/python-return-youtube-dislike/
Usage
To install the package, run the following command:
pip install python-return-youtube-dislike
Once installed, import it into your script with the following code:
from pythonryd import *
All functions in this library take in a parameter called video_id. This is the part after the watch?v= of a YouTube URL.
For the YouTube URL https://www.youtube.com/watch?v=SvcttIw9qBM the video_id is SvcttIw9qBM
Commands
The package contains the following commands:
ryd_getvideoinfo(video_id)
video = ryd_getvideoinfo("SvcttIw9qBM") # Using SvcttIw9qBM as an example
print(video)
Response:
{'id': 'SvcttIw9qBM', 'dateCreated': '2022-01-23T04:44:33.634409Z', 'likes': 645, 'dislikes': 167, 'rating': 4.177339901477833, 'viewCount': 300777, 'deleted': False}
ryd_getvideolikes(video_id)
likes = ryd_getvideolikes("SvcttIw9qBM") # Using SvcttIw9qBM as an example
print(likes)
Response:
645
ryd_getvideodislikes(video_id)
dislikes = ryd_getvideodislikes("SvcttIw9qBM") # Using SvcttIw9qBM as an example
print(dislikes)
Response:
167
ryd_getvideorating(video_id)
rating = ryd_getvideorating("SvcttIw9qBM") # Using SvcttIw9qBM as an example
print(rating)
Response:
4.177339901477833
ryd_getvideoviews(video_id)
views = ryd_getvideoviews("SvcttIw9qBM") # Using SvcttIw9qBM as an example
print(views)
Response:
300777
ryd_isvideodeleted(video_id)
deleted = ryd_isvideodeleted("SvcttIw9qBM") # Using SvcttIw9qBM as an example
print(deleted) # Returns True if deleted, False if not deleted (It's a string, not a bool)
Response:
False
ryd_getvideodatecreated(video_id)
dateCreated = ryd_getvideodatecreated("SvcttIw9qBM") # Using SvcttIw9qBM as an example
print(dateCreated)
Response:
2022-01-23T04:44:33.634409Z
Release files for python-return-youtube-dislike 1.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| python-return-youtube-dislike-1.1.5.tar.gz | 3.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| python_return_youtube_dislike-1.1.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.6 kB
Release files / python-return-youtube-dislike-1.1.5.tar.gz
| Download URL | python-return-youtube-dislike-1.1.5.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7c191706dcdfcbc35a0eb19864b1c698cd22ea685c2322b66ba4358435824be9
|
|
BLAKE2b-256 checksum How to use checksums |
e370a04e03354c3ddf558f9f1a7456c29ded0d89d04982ff347bfa5e326256a3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.1
|
Release files / python_return_youtube_dislike-1.1.5-py3-none-any.whl
| Download URL | python_return_youtube_dislike-1.1.5-py3-none-any.whl |
|---|---|
| Size | 3.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9a26b966d70731934ffd30d86b426cdbde698647432b124f7065615f03a061d2
|
|
BLAKE2b-256 checksum How to use checksums |
2911b590a0ca3c6a78c04d709de0b7e06a1976c30e3e3b738ad39899c3662e47
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.1
|