driule / youtube-scraper

Web application for Youtube videos statistics gathering

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Youtube Scraper

Lumen + PHP 7.4 + MySQL

Installing

git clone https://github.com/driule/youtube-scraper
cd path/to/youtube-scraper
composer install

Edit .env file

Setup DB

php artisan migrate:fresh

Add command scheduler to crontab

* * * * * php /path/to/project/public_html/artisan schedule:run >> /dev/null 2>&1

Scraping

Scrape Youtube channel and save/update video statistics and tags

php artisan scrape:channel UC03RvJoIhm_fMwlUpm9ZvFw

Update channel videos performance statistic

php artisan update:videos-performance UC03RvJoIhm_fMwlUpm9ZvFw

Massive Scrapping

Conceptual implementation on how to scrape Youtube channels massivevly can be found in App\Services\YoutubeScraper::scrapeChannelsMassively()

About

Web application for Youtube videos statistics gathering


Languages

Language:PHP 88.5%Language:Hack 10.7%Language:Shell 0.7%