A Python script that bulk downloads Twilio recordings
- Python 3
- Git
git clone https://github.com/danohn/bulk-download-twilio-recordings.git
cd bulk-download-twilio-recordings
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
cp .env.example .env
nano .env
(replace placeholders with real values)
git clone https://github.com/danohn/bulk-download-twilio-recordings.git
cd bulk-download-twilio-recordings
python3 -m venv venv
venv\Scripts\activate
pip install -r requirements.txt
copy .env.example .env
notepad .env
(replace placeholders with real values)
Once the virtual environment has been activated, start the app by running python app.py
or python async_app.py
to run the asynchronous version
The asynchronous version of the app uses Python's asynchronous programming features (asyncio
) and the aiohttp
library to download recordings efficiently, significantly reducing download times. Testing both versions shows an increase of almost 2300% in performance!
Method | Execution Time |
---|---|
Synchronous (app.py) |
632.6 seconds |
Asynchronous (async_app.py) |
26.38 seconds |