# Pytubedata
Pytubedata is a simple wrapper for [YouTube Data API](https://developers.google.com/youtube/v3) written in python
## Installation
```
pip install pytubedata
```
## Usage
This package requies a valid YT Data API Key. You can get one from [Google Cloud Console](https://console.cloud.google.com/apis/dashboard).
## Quickstart
- Create a file in `secret.yml` in the project's root directory and save the YouTube Data API key in that file.
- Getting the `Client`
```python
from Youtube import Client
c= Client()
```
## Documentation
- Search for videos
```python
c.search(query="api")
```
check out `Youtube/client.py` for other parameters
- Get activities of a channel
```python
c.request("activity",id="channel_id")
```
- Get details of a channel
```python
c.request("channel",id="channel_id")
```
- Get sections of a channel
```python
c.request("channel_sections",id="channel_id")
```
- Get section of a channel by id
```python
c.request("channel_section_by_id",id="section_id")
```
- Get playlists of a channel
```python
c.request("playlists",id="channel_id")
```
- Get playlist by id
```python
c.request("playlist_by_id",id="playlist_id")
```
- Get videos of a playlist
```python
c.request("playlist_videos",id="playlist_id")
```
- Get details of a video by id
```python
c.request("video_by_id",id="video_id")
```
- Get comments on a video
```python
c.request("comments_on_video",id="video_id")
```
- Get comment details by id
```python
c.request("comment_by_id",id="comment_id")
```
- Get replies of a comment
```python
c.request("replies_to_comment",id="comment_id")
```
[//]: # (Check [Youtube Data API Documentation](https://developers.google.com/youtube/v3/docs/) for optional parameters you can pass )
## Contact
Mail: [keshavandteam@gmail.com](mailto:keshavandteam@gmail.com?PyTubeData)
Raw data
{
"_id": null,
"home_page": "https://github.com/professor91/pytubedata",
"name": "pytubedata",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "youtubedata,youtubedataapi,pytubedata,pytubedata.py,googleapi",
"author": "Keshav Saini",
"author_email": "keshavandteam@gmail.com",
"download_url": "",
"platform": null,
"description": "# Pytubedata\n\nPytubedata is a simple wrapper for [YouTube Data API](https://developers.google.com/youtube/v3) written in python\n\n## Installation\n\n```\npip install pytubedata\n```\n\n## Usage\nThis package requies a valid YT Data API Key. You can get one from [Google Cloud Console](https://console.cloud.google.com/apis/dashboard).\n\n\n## Quickstart\n- Create a file in `secret.yml` in the project's root directory and save the YouTube Data API key in that file.\n\n\n- Getting the `Client`\n ```python\n from Youtube import Client\n\n c= Client()\n ```\n\n## Documentation\n- Search for videos\n ```python\n c.search(query=\"api\")\n ```\n\n check out `Youtube/client.py` for other parameters\n\n\n- Get activities of a channel\n ```python\n c.request(\"activity\",id=\"channel_id\")\n ```\n\n- Get details of a channel\n ```python\n c.request(\"channel\",id=\"channel_id\")\n ```\n\n- Get sections of a channel\n ```python\n c.request(\"channel_sections\",id=\"channel_id\")\n ```\n\n- Get section of a channel by id\n ```python\n c.request(\"channel_section_by_id\",id=\"section_id\")\n ```\n\n- Get playlists of a channel\n ```python\n c.request(\"playlists\",id=\"channel_id\")\n ```\n\n- Get playlist by id\n ```python\n c.request(\"playlist_by_id\",id=\"playlist_id\")\n ```\n\n- Get videos of a playlist\n ```python\n c.request(\"playlist_videos\",id=\"playlist_id\")\n ```\n\n- Get details of a video by id\n ```python\n c.request(\"video_by_id\",id=\"video_id\")\n ```\n\n- Get comments on a video\n ```python\n c.request(\"comments_on_video\",id=\"video_id\")\n ```\n\n- Get comment details by id\n ```python\n c.request(\"comment_by_id\",id=\"comment_id\")\n ```\n\n- Get replies of a comment\n ```python\n c.request(\"replies_to_comment\",id=\"comment_id\")\n ```\n\n\n[//]: # (Check [Youtube Data API Documentation](https://developers.google.com/youtube/v3/docs/) for optional parameters you can pass )\n\n\n## Contact\nMail: [keshavandteam@gmail.com](mailto:keshavandteam@gmail.com?PyTubeData)\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "A simple wrapper for YouTube Data API v3 written in Python",
"version": "1.1.0",
"split_keywords": [
"youtubedata",
"youtubedataapi",
"pytubedata",
"pytubedata.py",
"googleapi"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "eff54efc94066fd0d4a3961dc59b51267a90e9a6cafd8e55a022086cb9fdda71",
"md5": "21df309dfd5e82ea2d9e6bbbdb3789d9",
"sha256": "ff6d223a88cb70f62925be7ce27b0a729b80fa9766135c39b472e278777e869e"
},
"downloads": -1,
"filename": "pytubedata-1.1.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "21df309dfd5e82ea2d9e6bbbdb3789d9",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 13835,
"upload_time": "2023-03-30T14:24:16",
"upload_time_iso_8601": "2023-03-30T14:24:16.714610Z",
"url": "https://files.pythonhosted.org/packages/ef/f5/4efc94066fd0d4a3961dc59b51267a90e9a6cafd8e55a022086cb9fdda71/pytubedata-1.1.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-03-30 14:24:16",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "professor91",
"github_project": "pytubedata",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [
{
"name": "certifi",
"specs": [
[
"==",
"2022.12.7"
]
]
},
{
"name": "charset-normalizer",
"specs": [
[
"==",
"2.1.1"
]
]
},
{
"name": "idna",
"specs": [
[
"==",
"3.4"
]
]
},
{
"name": "requests",
"specs": [
[
"==",
"2.28.1"
]
]
},
{
"name": "urllib3",
"specs": [
[
"==",
"1.26.13"
]
]
}
],
"lcname": "pytubedata"
}