Skip to content

Luew2/Acadia

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

96 Commits
 
 
 
 
 
 

Repository files navigation

Acadia

License: MIT Code style: black

Tool for creating stickers.

Setup

The steps below walk you through an initial setup and a clean Python environment. I use Pipenv to manage the project environment and pre-commit to run CI actions both locally and in PR checks.

  1. Install Python 3.10 - https://www.python.org/downloads/

  2. Install Virtualenv - https://pypi.org/project/virtualenv/

  3. Make sure your virtual environment is running - which python

  4. Install pipenv within your running virtualenv

pip install pipenv
  1. Install dependencies
pipenv sync
  1. Run virtual environment (after setting environment variables)
pipenv shell

ENV VARIABLES

Make sure to create a .env file

The following environment variables must be set:

  • ENV_OPENAI_KEY
  • ENV_OPENAI_ORG
  • ENV_CHROME_PROFILE -- Temp not needed

For more information on setting openai variables see: https://help.openai.com/en/articles/4936850-where-do-i-find-my-secret-api-key

For ENV_CHROME_PROFILE see First Time Setup Selenium step below.

Run Generator

Currently: run main.py in the root directory -- make sure the above environment variables are set.

Run Selenium


FIRST TIME SETUP

Open up your chrome and go to chrome://version/ and identify the default profile. Set this as your ENV_CHROME_PROFILE variable.

Go to whichever website you want to sell stickers on and login with the chrome browser you are planning to use with Selenium.


Running Selenium

Run the Selenium driver

python Selenium/driver.py

Clean up

run clean_up.py in the base directory to remove generated stickers in Sticker_Generator/data

About

Sticker Generator

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors