This is a Python web scraper that collects episodes from Christian podcast sources:
- Ask Pastor John episodes from the Desiring God website
- Therapy and Theology episodes by Lysa TerKeurst from Transistor.fm
- Create a virtual environment:
python3 -m venv venv- Activate the virtual environment:
source venv/bin/activate # On macOS/Linux- Install dependencies:
pip install -r requirements.txtYou can run the scraper in several ways:
# Scrape both sources (default)
python src/scraper.py
# Scrape only Ask Pastor John episodes
python src/scraper.py apj
# Scrape only Therapy & Theology episodes
python src/scraper.py tt
# Scrape both sources explicitly
python src/scraper.py allask_pastor_john.csv- Contains Ask Pastor John episodestherapy_and_theology.csv- Contains Therapy & Theology episodes
Both files have the same structure with columns:
- episode_number
- title
- url
- date
- topic
- description
pytest: For running testsblack: For code formattingflake8: For code lintingpython-dotenv: For environment variable management
The project structure will be organized as follows:
.
├── README.md
├── requirements.txt
├── src/
│ └── __init__.py
├── tests/
│ └── __init__.py
└── venv/