Code Monkey home page Code Monkey logo

santhoshse7en / utuby Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 3.0 14 KB

simple script for downloading Youtube comments without using the Youtube API

Home Page: https://santhoshse7en.github.io/utuby/.

License: MIT License

Python 100.00%
youtube youtube-downloader youtube-channel without-api youtube-scraper youtube-comments youtube-comments-downloader bs4 lxml ajax css-selector sentimental-analysis textblob-sentiment-analysis textblob vandersentiment lexicon web scraper youtube-api

utuby's Introduction

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

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

ytdir

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

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

utuby's People

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

utuby's Issues

Date for the comments

Hello

I really like this package, thank you!

And is it possible to add date for each comments in the "Youtube Comments DataFrame"?
I would like to monitor if any new comments posted.

Many thanks!

Kent

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.