Metadata-Version: 2.1
Name: ytcomment-trends
Version: 0.1.5
Summary: YouTube comment trends analysis tool using oseti
Home-page: https://www.386.jp/works/ytcomment_trends
License: MIT
Author: Kyosuke Miyamura
Author-email: ask@386.jp
Requires-Python: >=3.8,<3.11
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Requires-Dist: google-api-python-client (>=2.36.0,<3.0.0)
Requires-Dist: google-auth-httplib2 (>=0.1.0,<0.2.0)
Requires-Dist: google-auth-oauthlib (>=0.4.6,<0.5.0)
Requires-Dist: matplotlib (>=3.5.1,<4.0.0)
Requires-Dist: oseti (>=0.2,<0.3)
Requires-Dist: pandas (>=1.3.5,<2.0.0)
Project-URL: Repository, https://github.com/386jp/ytcomment_trends
Description-Content-Type: text/markdown

# ytcomment_trends

[![PyPI version](https://badge.fury.io/py/ytcomment-trends.svg)](https://badge.fury.io/py/ytcomment-trends)

[![Python Versions](https://img.shields.io/pypi/pyversions/ytcomment-trends.svg)](https://pypi.org/project/ytcomment-trends/)

## Dependencies

Before install this library, you need to install mecab for NLP.

For macOS, run this command to install mecab and ipadic dictionary. For other OS, please follow the instructions from mecab official documentation.

```
brew install mecab mecab-ipadic
```

## How to use

### Get YouTube API Client Secret

Please refer to [Google's official documentation](https://developers.google.com/youtube/registering_an_application) for getting API keys. Make sure you create credentials with API Key (not OAuth 2.0 Client) with API restriction to the YouTube Data API.

### Run command

Install this library with the following command:

```
pip install ytcomment_trends
```

If you are using virtual environment, please use the package manager of the virtual environment (e.g., `pipenv install`, `poetry add`).

After installation, run this command to analyze video.

```
ytcomment_trends -v pR2E2OatMTQ -k hogefuga
```

If you are not sure about the arguments, run following command to check.

```
ytcomment_trends -h
```
