https://github.com/polywock/comments
Get youtube comments with Python CLI interface.
https://github.com/polywock/comments
python3 youtube-api
Last synced: about 2 months ago
JSON representation
Get youtube comments with Python CLI interface.
- Host: GitHub
- URL: https://github.com/polywock/comments
- Owner: polywock
- Created: 2019-05-23T07:50:44.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-05-22T22:28:06.000Z (about 3 years ago)
- Last Synced: 2025-03-09T14:46:19.976Z (over 1 year ago)
- Topics: python3, youtube-api
- Language: Python
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Comments
Get youtube comments with Python.
## Setup
1. Install required dependencies with `pipenv install`.
2. Create a file called `key.py` that has your Youtube Data API KEY. You can make one online at https://developers.google.com/youtube/v3/getting-started.
`echo 'KEY = "YOUR_API_KEY"' > key.py`
3. Create an alias for easier access. In short "comments" would equate to us cding into the folder and running comments.py within the pipenv context. Save this alias inside shell rc file.
`alias comments='cd ~/dev/comments/ && pipenv run py comments.py'`.
4. `comments my_video_id` // to get root comments to stdout.
5. You can pipe the comments to less or save to a file. You have to wait for the sync requests.
`comments my_video_id | less`