https://github.com/tinker1234/uyt
scrap / search Youtube.
https://github.com/tinker1234/uyt
python python-2 python-3 python2 python3 youtube youtube-search
Last synced: about 2 months ago
JSON representation
scrap / search Youtube.
- Host: GitHub
- URL: https://github.com/tinker1234/uyt
- Owner: tinker1234
- License: gpl-3.0
- Created: 2017-08-07T04:00:55.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-07-29T17:20:27.000Z (over 6 years ago)
- Last Synced: 2025-03-04T22:19:17.096Z (about 1 year ago)
- Topics: python, python-2, python-3, python2, python3, youtube, youtube-search
- Language: Python
- Homepage:
- Size: 20.5 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# uyt
scrap / search Youtube.
It can search youtube and find the ID of the first video.
It can grab,
- Video author
- Video titles
- Video description
- Video length (M=Minutes, S=seconds etc)
- Video views (it has commas)
- Video likes/dislikes (int values)
- Video published (year-month-day)
- Video genres
* NOTE
Everything network wise is done in the `__init__` to make things faster.
# How to use to search
```python
from uyt import youtube
yt = youtube.Youtube("test") # grabs id then scraps YouTube so its slower
print("Author: %s" % yt.name)
print("Title: %s" % yt.title)
print("Description: %s" % yt.description)
print("Length: %s" % yt.length)
print("Views: %s" % yt.views)
print("Likes: {0}%".format(yt.likes))
print("Dislikes: {0}%".format(yt.dislikes))
print("Published: %s" % yt.published)
print("Genre: %s" % yt.genre)
```
# How to use with ID
```python
from uyt import youtube
yt = youtube.Youtube(ID="") # faster
print("Author: %s" % yt.name)
print("Title: %s" % yt.title)
print("Description: %s" % yt.description)
print("Length: %s" % yt.length)
print("Views: %s" % yt.views)
print("Likes: {0}%".format(yt.likes))
print("Dislikes: {0}%".format(yt.dislikes))
print("Published: %s" % yt.published)
print("Genre: %s" % yt.genre)
```
# How to install
```bash
python setup.py install
python3 setup.py install
```
# Test it
```bash
python -m "uyt.youtube"
python3 -m "uyt.youtube"
```
# Supported OS's
Linux/Windows