Python package which to access the YouTube database without API
Project description
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://santhoshse7en.github.io/utuby/ |
Documentation: | https://santhoshse7en.github.io/utuby_doc/ |
Dependencies
- beautifulsoup4
- requests
- lxml
- cssselect
- vaderSentiment
- textblob
- pandas
Dependencies Installation
Use the package manager pip to install following
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.
>>> from utuby.utuby import youtube
>>> url = 'https://www.youtube.com/watch?v=xjQFi-HP7po'
>>> youtube = youtube(url)
Directory of youtube class
>>> print(dir(youtube))
Examples for Extracting YouTube Channel Name
>>> youtube.channel_name
'Fully'
Examples Calculating Sentiment Scores for extracted YouTube Comments
>>> youtube.final_sentiment_scores
{'neu': 0.769, 'neg': 0.051, 'pos': 0.178, 'compound': 0.0}
Youtube Comments DataFrame
>>> youtube.youtube_comments_df.head()
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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file utuby-0.6.tar.gz
.
File metadata
- Download URL: utuby-0.6.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd6f0fb7dcea9af2d6360b0b46c754308500bb88c0382246b9af25c91c49b113 |
|
MD5 | b1a7e5e55c1e6073458c870b40e98c87 |
|
BLAKE2b-256 | f2aca56093db16f15d878e53084970f437e837a1a5e139c29af832a6857cc28c |