An open API service indexing awesome lists of open source software.

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.

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