Youtube Comment Extractor
This package scrapes comments from any Youtube video links. The comments will be further analysed and used for sentiment analysis.
The package returns a pandas dataframe.
Installation
The package can be installed via PYPI and requires python3
$ pip install git+https://github.com/linda-oranya/YT_comments_scrapper.git
$ pip install YT-comments-scrapper
Usage This libary can be used when the key interest is to retrieve comments from a YouTube link. The packages uses selenium since YouTube pages are mainly JavaScript rendered.
That means you have to add the path to your chromedriver. Pls install here : https://sites.google.com/chromium.org/driver/, if you don't have installed.
The package allows you to input video link, the range of comments you want to scrape and path to your chromedriver.
Leave the chrome tab open when extracting the comments.
Sample codes
from yt_scrapper import YtScrapper
scrapper = YtScrapper("<Youtube link>",<num_of_comments>,"<path_to_chromedriver>")
scrapper.scrape_comments()
Development
You can contribute to this project by cloning this repo and pushing to a branch for review and merging.
Or
Create an issue with the issue link: https://github.com/linda-oranya/YT_comments_scrapper/issues
License
MIT
It is a Free Software
Metadata
Release files for YT-comments-scrapper 0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| YT_comments_scrapper-0.3.tar.gz | 4.1 kB | Without provenance | Details for YT_comments_scrapper-0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| YT_comments_scrapper-0.3-py3-none-any.whl | Python 3 | none | any | Details for YT_comments_scrapper-0.3-py3-none-any.whl |
Total release size: 8.0 kB
Release files / YT_comments_scrapper-0.3.tar.gz
| Download URL | YT_comments_scrapper-0.3.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
29c6d00bdba9ca55bee26acc3bb25054c063150a3dc0c80a4352d876102bf91d
|
|
BLAKE2b-256 checksum How to use checksums |
53e4ddc697eae2b2ba9726a0c41e67fbff7a4c999cac8ff2aa3a5a970b3aa11b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.6.0 pkginfo/1.6.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5
|
Release files / YT_comments_scrapper-0.3-py3-none-any.whl
| Download URL | YT_comments_scrapper-0.3-py3-none-any.whl |
|---|---|
| Size | 3.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
461158b0302d8cfca8cfdb79b82721c83e93b7741ef072dcc20eca14bf74f0cc
|
|
BLAKE2b-256 checksum How to use checksums |
394d2060a164de967d50db5d3d16af100cb1ee06d7cfdfff3a5ccd9537645818
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.6.0 pkginfo/1.6.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5
|
Security for YT-comments-scrapper 0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.