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.
Source | Link |
---|---|
🐍 PyPI | utuby on PyPI |
🛠 Repository | GitHub Repo |
📚 Documentation | Read the Docs |
beautifulsoup4
requests
lxml
cssselect
vaderSentiment
textblob
pandas
Install the required dependencies using pip:
pip install -r requirements.txt
from utuby.utuby import youtube
url = "https://www.youtube.com/watch?v=xjQFi-HP7po"
youtube = youtube(url)
print(dir(youtube))
>>> youtube.channel_name
'Fully'
>>> youtube.final_sentiment_scores
{'neu': 0.769, 'neg': 0.051, 'pos': 0.178, 'compound': 0.0}
>>> youtube.youtube_comments_df.head()
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.
This project is licensed under the MIT License 🪪