Skip to content

Latest commit

 

History

History
32 lines (27 loc) · 838 Bytes

README.md

File metadata and controls

32 lines (27 loc) · 838 Bytes

Banner Generator for sciwork

Setup Environment

Install Packages and Setup Venv

python3 -m venv venv
source ./venv/bin/activate
pip3 install -r requirements.txt

Register an Unsplash API APP

  1. Go to Unsplash Developer/API and signup account.
  2. Register an application, and navigate to Keys section, check the figure below if you do not find it.
  3. Copy ACCESS KEY to .env.

Alt text

Generate Banners

  1. Edit .env and change the value of EVENT_TITLE
  2. (Optional) Edit config.py if needed
    class PhotoQuerySetting:
        # Change Keyword for Searching Photos
        query = "code"
        # How many Banner(s) to Generate
        count = 5
  3. You're good to go!
    python3 main.py