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.1.11.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 702f6fea14283085eee4fbd2dbdbea770617228d0b9c91d69f58f5756dcdc9d3 |
|
MD5 | 6ce1f2112eeaa2d4c5f3e525d3fe466c |
|
BLAKE2b-256 | 0eae924b9992a51ac0b29a71ce77b6684e587b914345690b30984b55e6dfa761 |
Hashes for clarku_youtube_crawler-1.1.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3573926f2a98f9b3d3e7b090f6db12953cb0c2baa219660c496f498bbb39b79 |
|
MD5 | 37fb0637da5da01c980bdf606ee31bc7 |
|
BLAKE2b-256 | 0d54883de003dd239259a2c71d02fe9afd9b49d1684c005b4410090250dfa1d7 |