Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/santhoshse7en/utuby
simple script for downloading Youtube comments without using the Youtube API
https://github.com/santhoshse7en/utuby
ajax bs4 css-selector lexicon lxml scraper sentimental-analysis textblob textblob-sentiment-analysis vandersentiment web without-api youtube youtube-api youtube-channel youtube-comments youtube-comments-downloader youtube-downloader youtube-scraper
Last synced: about 1 month ago
JSON representation
simple script for downloading Youtube comments without using the Youtube API
- Host: GitHub
- URL: https://github.com/santhoshse7en/utuby
- Owner: santhoshse7en
- License: mit
- Created: 2019-05-30T11:49:31.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-05-30T12:51:06.000Z (over 5 years ago)
- Last Synced: 2024-09-25T03:31:34.957Z (about 2 months ago)
- Topics: ajax, bs4, css-selector, lexicon, lxml, scraper, sentimental-analysis, textblob, textblob-sentiment-analysis, vandersentiment, web, without-api, youtube, youtube-api, youtube-channel, youtube-comments, youtube-comments-downloader, youtube-downloader, youtube-scraper
- Language: Python
- Homepage: https://santhoshse7en.github.io/utuby/.
- Size: 13.7 KB
- Stars: 3
- Watchers: 2
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![PyPI Version](https://img.shields.io/pypi/v/utuby.svg)](https://pypi.org/project/utuby)
[![Coverage Status](https://coveralls.io/repos/github/santhoshse7en/utuby/badge.svg?branch=master)](https://coveralls.io/github/santhoshse7en/utuby?branch=master)
[![License](https://img.shields.io/pypi/l/utuby.svg)](https://pypi.python.org/pypi/utuby/)
[![Documentation Status](https://readthedocs.org/projects/pip/badge/?version=latest&style=flat)](https://santhoshse7en.github.io/utuby_doc)# utuby
YouTube's API is annoying to work with, and has lots of limitations. utuby is a simple script for downloading Youtube comments without using the Youtube API - No API rate limits. No restrictions. Extremely fast.
| Source | Link |
| --- | --- |
| PyPI: | https://pypi.org/project/utuby/ |
| Repository: | https://github.com/santhoshse7en/utuby/ |
| Documentation: | https://santhoshse7en.github.io/utuby_doc/ |## Dependencies
* beautifulsoup4
* requests
* lxml
* cssselect
* vaderSentiment
* textblob
* pandas## Dependencies Installation
Use the package manager [pip](https://pip.pypa.io/en/stable/) to install following
```bash
pip install -r requirements.txt
```## A Glance
Download it by clicking the green download button here on Github. You only need to parse specific YouTube URL as argument.
```python
>>> from utuby.utuby import youtube>>> url = 'https://www.youtube.com/watch?v=xjQFi-HP7po'
>>> youtube = youtube(url)
```Directory of youtube class
```python
>>> print(dir(youtube))
```![ytdir](https://user-images.githubusercontent.com/47944792/58631120-20cba880-82ff-11e9-92be-300d2714d37a.PNG)
**Examples for Extracting YouTube Channel Name**
```python
>>> youtube.channel_name'Fully'
```**Examples Calculating Sentiment Scores for extracted YouTube Comments**
```python
>>> youtube.final_sentiment_scores{'neu': 0.769, 'neg': 0.051, 'pos': 0.178, 'compound': 0.0}
```**Youtube Comments DataFrame**
```python
>>> youtube.youtube_comments_df.head()
```![ytdf](https://user-images.githubusercontent.com/47944792/58631134-2c1ed400-82ff-11e9-8575-2b362ed28cb7.PNG)
## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
## License
[MIT](https://choosealicense.com/licenses/mit/)