mirror of
https://github.com/Paillat-dev/FABLE.git
synced 2026-01-02 01:06:20 +00:00
refactor(video.py): remove unnecessary print statement
refactor(montage.py): use os.path.join instead of string concatenation refactor(thumbnail.py): use os.path.join instead of string concatenation refactor(uploader.py): use os.path.join instead of string concatenation refactor(uploader.py): add support for client_secret.json file with different names in credentials folder docs(readme.md): update instructions for openai and unsplash keys docs(readme.md): update instructions for google oauth client id json files docs(readme.md): add information about channel.yaml file in each channel's folder
This commit is contained in:
20
readme.md
20
readme.md
@@ -10,21 +10,11 @@ pip install -r requirements.txt
|
||||
```
|
||||
You will also need to install [FFmpeg](https://ffmpeg.org/download.html) in order for `moviepy` to work.
|
||||
|
||||
Now that you have installed the dependencies, you will need to add all the required values to the `.env` file like this:
|
||||
```
|
||||
OPENAI_API_KEY=
|
||||
UNSPLASH_ACCESS_KEY=
|
||||
DEEPL_ACCESS_KEY=
|
||||
```
|
||||
You should be able to find all the required keys with a quick Google search.
|
||||
You will need an `openai_api_key` and an `unsplash_access_key` in order to use the script. You can get them [here](https://beta.openai.com/), and [here](https://unsplash.com/developers). You will be told when to paste them. You can always change them later in the `env.yaml` file.
|
||||
|
||||
Now, open the blank text file called `subjects.txt` in the `env` folder and add the subjects you want to generate videos for, one per line. For example:
|
||||
```
|
||||
Educational and simple videos about physics
|
||||
Python tutorials for both beginners and advanced programmers
|
||||
```
|
||||
One per line.
|
||||
You should also prepare google oauth client id json for the youtube api for each account you want to automate. You can find a tutorial on how to do that [here](https://developers.google.com/youtube/v3/quickstart/python). You will be asked to add it to the corresponding folder when you run the script for the first time for each channel.
|
||||
|
||||
You should also prepare google oauth client id json for the youtube api for each account youo want to automate. You can find a tutorial on how to do that [here](https://developers.google.com/youtube/v3/quickstart/python). You will be asked to add it to the corresponding folder when you run the script for the first time for each subject.
|
||||
Now, you can run the `main.py` script to generate the videos. If it is the first time you are running the script, it will ask you to log in to your Google account, as well as creating and moving or creating some files. The created videos will be saved in the `videos` folder, and automatically uploaded to YouTube. The script will also create a thumbnail and a description for each video, and add a nice background music to it.
|
||||
|
||||
Now, you can run the `main.py` script to generate the videos. If it is the first time you are running the script, it will ask you to log in to your Google account, as well as creating and moving or creating some files. The created videos will be saved in the `videos` folder, and automatically uploaded to YouTube. The script will also create a thumbnail and a description for each video, and add a nice background music to it.
|
||||
# Other stuff
|
||||
In each channel's folder there will be a `channel.yaml` file with all of the channel's settings. You can change them manually, but you will need to restart the script for the changes to take effect.
|
||||
Reference in New Issue
Block a user