Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sanjaydevtech/ytutils
YouTube Video and Channel Extractor
https://github.com/sanjaydevtech/ytutils
channel-extractor python video-extraction youtube-extractor youtube-video
Last synced: about 1 month ago
JSON representation
YouTube Video and Channel Extractor
- Host: GitHub
- URL: https://github.com/sanjaydevtech/ytutils
- Owner: SanjayDevTech
- License: mit
- Created: 2020-07-18T17:19:00.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-09-07T16:08:01.000Z (about 4 years ago)
- Last Synced: 2024-10-11T20:03:02.013Z (about 1 month ago)
- Topics: channel-extractor, python, video-extraction, youtube-extractor, youtube-video
- Language: Python
- Homepage: https://sanjaydevtech.github.io/ytutils/
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ytutils
YouTube video & channel details extractor## Pypi Website
- [ytutils](https://pypi.org/project/ytutils)## Features
- Extract video details
- Extract channel details## Installation
```bash
pip install ytutils
```## Video Extraction
### Importing
```python
from ytutils.Video import Video
```### Step-1
```python
api_key = "YOUR API KEY"
vid = Video(api_key)
```### Step-2
```python
try:
vid.start(video_url="https://www.youtube.com/watch?v=hW7qJZK2UAc") # Or vid.start(video_id="hW7qJZK2UAc")
except:
pass # Error occurred
```### Step-3
```python
details = vid.result()
print(details['title'])
```## Channel Extraction
### Importing
```python
from ytutils.Channel import Channel
```### Step-1
```python
api_key = "YOUR API KEY"
cha = Channel(api_key)
```### Step-2
```python
try:
cha.start(channel_url="https://www.youtube.com/channel/UC_yAFedtY2po4noljIqSM1w") # Or cha.start(channel_id="UC_yAFedtY2po4noljIqSM1w")
except:
pass # Error Occurred
```### Step-3
```python
details = cha.result()
print(details['title'])
```## Contact me
- [Twitter](https://twitter.com/SanjayDevTech)