Update README.md

This commit is contained in:
DrMint 2022-04-03 10:27:31 +02:00 committed by GitHub
parent f45ca389ff
commit a9c313a461
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 23 additions and 0 deletions

View File

@ -26,3 +26,26 @@ Or alternatively just give the video ID as a parameter
```
That's it!
### Result
The resulting archive is composed as follows:
- The video, in the highest quality possible for the audio and video (limited to codex compatible with the MP4 container format).
- Highest quality thumbnail, saved as WebP
- A `.live-chat.json` file containing an archive all the YouTube live chat
- A `.info.json` file containing most if not all metadata publicly available about the video (duration, uploader, channel_id, tags, available qualities...)
- A `.vtt` file for each subtitle language available.
## Import archives to Strapi
Create a .env.local file with the following information:
```txt
URL_GRAPHQL=https://path.to.strapi.com/graphql
ACCESS_TOKEN=token_generated_by_strapi
```
Then run the script using:
```bash
python3 importToStrapi.py
```