diff --git a/README.md b/README.md index a83e39b..8c2cc9d 100644 --- a/README.md +++ b/README.md @@ -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 +``` +