Clark University, Package for YouTube crawler and cleaning data
Project description
clarku-youtube-crawler
Clark University YouTube crawler and JSON decoder for YouTube json. Please read documentation in DOCS
Installing
To install,
pip install clarku-youtube-crawler
The crawler needs multiple other packages to function.
If missing requirements (I already include all dependencies so it shouldn't happen), download requirements.txt
.
Navigate to the folder where it contains requirements.txt and run
pip install -r requirements.txt
Example usage
To initialize,
# your_script.py
import clarku_youtube_crawler as cu
test = cu.RawCrawler()
test.__build__()
test.crawl("searchkey",start_date=14, start_month=12, start_year=2020, day_count=2)
test.crawl_videos_in_list(comment_page_count=1)
test.merge_all()
channel = cu.ChannelCrawler()
channel.__build__()
channel.setup_channel(subscriber_cutoff=1000, keyword="")
channel.crawl()
channel.crawl_videos_in_list(comment_page_count=1)
channel.merge_all()
jsonn = cu.JSONDecoder()
jsonn.load_json("YouTube_RAW_20201221/FINAL_raw_merged.json")
Changelog
Version 0.0.1->0.0.3
This is beta without testing since python packaging is a pain. Please don't install these versions.
Version 0.0.5
Finally figured out testing. It works okay. More documentation to come.
Version 0.0.6
Stable release only for RawCrawler
feature
Version 1.0.0
Version 1.0.1
I think this might be our first full stable release.
Version 1.0.1.dev
Pre-release
Added different file types for ChannelCrawler. Added documentation
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for clarku_youtube_crawler-1.0.9.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b46e75a059df9cd07cb274692ac8f3453b02cc767d8dd32558e0d862bc930248 |
|
MD5 | 3fe5438d5e1e8470198626ea37bc8130 |
|
BLAKE2b-256 | 567b836d64daa3bba58556e45a9c6bb3fab20440ff17dc9d5015b2054e093155 |
Hashes for clarku_youtube_crawler-1.0.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c5297a9821d1812b8b681b11f155c59ef2edb46ec8f9ca5287e3858fe63e88dd |
|
MD5 | 81c4bcc852ff9279db0529a58daff345 |
|
BLAKE2b-256 | 6abdd0d439ddbfe9b38394d2ee86ec5c95c7a5a1bbad5e18a1eca4a53414d706 |