Skip to main content

A simple Python library to interact with the Return YouTube Dislike API

Project description

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

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

python-return-youtube-dislike-1.1.5.tar.gz (3.2 kB view hashes)

Uploaded Source

Built Distribution

Supported by

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