I created this script to help automate the process of updating the resume I display on my own website.
The script converts the PDF resume to PNG, moves both to the project directory, and pushes changes to GitHub.
- Clone repository to local:
git clone https://github.com/raglandconnor/resume-upload-script.git
cd resume-upload-script
- Create virtual environment:
# in project repository
python3 -m venv .venv
source .venv/bin/activate # activate python virtual environment (macOS)
- Install dependencies:
# in project repository
pip install -r requirements.txt # or (pip install pdf2image Pillow)
# in terminal
brew install poppler
- Edit script paths/filenames
- Place PDF in source directory
- Run the script:
# in project repository
python3 script.py