π₯ utuby
YouTubeβs official API is restrictive π€ β rate limits, quotas, API keysβ¦ utuby is a fast and simple Python tool that scrapes YouTube comments without using the API β β No rate limits, β No keys, β No restrictions.
π Project Links
Source | Link |
---|---|
π PyPI | utuby on PyPI |
π Repository | GitHub Repo |
π Documentation | Read the Docs |
π¦ Dependencies
beautifulsoup4
requests
lxml
cssselect
vaderSentiment
textblob
pandas
π₯ Installation
Install the required dependencies using pip:
pip install -r requirements.txt
βοΈ Quick Start
from utuby.utuby import youtube
url = "https://www.youtube.com/watch?v=xjQFi-HP7po"
youtube = youtube(url)
π Features & Examples
π§ Explore Available Methods
print(dir(youtube))
πΊ Get Channel Name
>>> youtube.channel_name
'Fully'
π§ Sentiment Analysis of Comments
>>> youtube.final_sentiment_scores
{'neu': 0.769, 'neg': 0.051, 'pos': 0.178, 'compound': 0.0}
π View YouTube Comments as DataFrame
>>> youtube.youtube_comments_df.head()
π€ Contributing
Contributions are welcome! π οΈ For major changes, please open an issue first to discuss what youβd like to improve or add. β Donβt forget to update or add tests accordingly.
π License
This project is licensed under the MIT License πͺͺ