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 |
beautifulsoup4requestslxmlcssselectvaderSentimenttextblobpandas
Install the required dependencies using pip:
pip install -r requirements.txtfrom 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 πͺͺ