Aug 22, 2024
export AIRFLOW_CONSTRAINTS_URL="https://raw.githubusercontent.com/apache/airflow/constraints-2.3.1/constraints-3.9.txt"
pip install "apache-airflow==2.3.1" --constraint "$AIRFLOW_CONSTRAINTS_URL"
airflow standalone
to create a local Airflow server.http://localhost:8080
.from airflow.decorators import dag, task
, import pendulum
.pendulum.datetime(2022, 5, 31)
.@task
decorator for the function to download metadata.requests
library to fetch metadata from an XML URL.xml2dict
to extract episode information.sqlite3 episodes.db
.airflow connections add 'podcasts' --conn-type sqlite --conn-host '/path/to/your/episodes.db'
requests
to download and save MP3 files to a designated folder.