https://github.com/phpfour/youtube-playlist
https://github.com/phpfour/youtube-playlist
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/phpfour/youtube-playlist
- Owner: phpfour
- Created: 2024-06-28T14:23:31.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-28T14:35:06.000Z (over 1 year ago)
- Last Synced: 2024-10-14T10:48:38.216Z (over 1 year ago)
- Language: PHP
- Size: 116 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Import YouTube Playlist
An example Laravel project to import YouTube playlist videos to database.
Prepared for a class in [Professional Laravel](https://cutt.ly/wedevs-laravel) course.
### Installation
1. Clone the repository
```bash
git clone https://github.com/phpfour/youtube-playlist
```
2. Install composer dependencies and chromedriver
```bash
composer install
vendor/bin/bdi detect drivers
```
3. Generate application key
```bash
php artisan key:generate
```
4. Migrate the database
```bash
php artisan migrate --seed
```
5. Run the console command with event name and playlist URL to import videos:
```bash
php artisan import:event-from-youtube "Laracon EU 2022" "https://www.youtube.com/playlist?list=PLMdXHJK-lGoBcH4il_bq-aD_p34ZrBlas"
```
6. The database will be populated with the videos from the playlist.