youtubepy is a package to search for youtube videos with python
Project description
youtubepy
youtubepy is a package to search for youtube videos through python code.
Usage
from youtubepy import Video
video = Video("me at the zoo")
result = video.search()
print(result)
> https://www.youtube.com/watch?v=A8AlbaDmaec
SafeSearch Filter
from youtubepy import Video
video = Video("fuck", safesearch=True)
result = video.search()
print(result)
> "youtube.BlockedWordError: A blocked word detected in the result video! Don't use safesearch to ignore this error!"
Attributes available for Video
search()
title()
channel_url()
channel_name()
thumbnail_url()
thumbnail_save()
duration()
view_count()
like_count()
dislike_count()
average_rating()
description()
from youtubepy import ExtractInfo
video = ExtractInfo("https://youtu.be/A8AlbaDmaec")
title = video.title()
print(title)
> Me at the zoo - 4k Upscaled, 60 FPS
Attributes available for ExtractInfo
title()
channel_url()
channel_name()
thumbnail_url()
thumbnail_save()
duration()
view_count()
like_count()
dislike_count()
average_rating()
description()
Latest and the fastest working version! You may experience bugs and glitches in other versions
Warning - Do NOT install other versions of this library!
Note - This package is currently under development
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
youtubepy-4.3.1.tar.gz
(6.7 kB
view hashes)
Built Distribution
Close
Hashes for youtubepy-4.3.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d350ba6081f2ef82a1c9cfe43c7d62a2ddd515a88cec20f0fb5efcf204ce2962 |
|
MD5 | fbc399159b29f038af2d7f50602e1ad1 |
|
BLAKE2b-256 | f1791245d00261059123cd99a240937e5a21f15eff48d7b27dc8e52368496d65 |