Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/saltiola7/youtube_live_stream_to_webflow_post
Work in progress. This repo sync youtube livestreams to webflow CMS in real time
https://github.com/saltiola7/youtube_live_stream_to_webflow_post
Last synced: about 1 month ago
JSON representation
Work in progress. This repo sync youtube livestreams to webflow CMS in real time
- Host: GitHub
- URL: https://github.com/saltiola7/youtube_live_stream_to_webflow_post
- Owner: Saltiola7
- License: mit
- Created: 2024-05-16T18:04:20.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-05-16T18:07:19.000Z (8 months ago)
- Last Synced: 2024-05-16T19:26:23.374Z (8 months ago)
- Language: Python
- Size: 23.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme
- License: LICENSE
Awesome Lists containing this project
README
# YouTube to Webflow Synchronization Flow
This project provides a Prefect flow to synchronize YouTube videos with Webflow CMS items. The flow fetches YouTube videos, checks if they exist in BunnyCDN, and then creates or updates Webflow CMS items accordingly.
## Prerequisites
- Python 3.7+
- Prefect
- Required API credentials and configurations## Installation
1. Clone the repository:
```sh
git clone
cd
```2. Install the required Python packages:
```sh
pip install -r requirements.txt
```3. Set up your configuration file in `cfg/cfg.py`.
## Configuration
Ensure you have a configuration file `cfg/cfg.py` that provides necessary configurations such as API keys, paths, and other settings.
## Running the Flow
To run the YouTube to Webflow synchronization flow, execute the following command:
```sh
python flow.py
```## Flow Details
The flow consists of the following main tasks:
1. **Load Configurations**: Loads the necessary configurations from `cfg/cfg.py`.
2. **Fetch YouTube Videos**: Fetches YouTube videos using the YouTube API.
3. **Fetch Existing Webflow Items**: Retrieves existing items from Webflow CMS.
4. **Process Videos**: For each video:
- Checks if the video exists in BunnyCDN.
- If not, downloads and uploads the video to BunnyCDN.
- Creates or updates the Webflow CMS item with the video details.## Logging
The flow uses Python's `logging` module to log debug information. Ensure that logging is configured properly to capture these logs.
## Additional Information
For more details on the individual tasks and their implementations, refer to the `flow.py` file in the repository.