Skip to main content

Python package which to access the YouTube database without API

Project description

PyPI Version Coverage Status License Documentation Status

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 to install following

pip install -r requirements.txt

Usage

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)

>>> youtube.channel_name

'Fully'

Directory of utuby

>>> print(dir(youtube))

ytdir

Examples 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()

ytdf

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

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

utuby-0.2.tar.gz (5.4 kB view details)

Uploaded Source

File details

Details for the file utuby-0.2.tar.gz.

File metadata

  • Download URL: utuby-0.2.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

Hashes for utuby-0.2.tar.gz
Algorithm Hash digest
SHA256 b3ae139e73617118c3b054cf004ba8eaa94b07ab4b0f15acbfeb25439e6d5a20
MD5 1c765e793e7a53a3854ec8cd213bb309
BLAKE2b-256 e7f039b52afef655703afee017f82df02cae07dfc542a2d3991be3c90aa91ba1

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page