Update README.md
This commit is contained in:
parent
f45ca389ff
commit
a9c313a461
23
README.md
23
README.md
|
@ -26,3 +26,26 @@ Or alternatively just give the video ID as a parameter
|
||||||
```
|
```
|
||||||
|
|
||||||
That's it!
|
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
|
||||||
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue