Skip to content

Commit

Permalink
CHG - externalized app URL , better info logs
Browse files Browse the repository at this point in the history
  • Loading branch information
MRColorR committed Mar 23, 2024
1 parent 2b7356a commit fb7df5d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ FROM debian:stable-slim

# Set environment variables
ENV EXTENSION_ID=ilehaonighjijnmpnagapkhpcdbhclfg
ENV EXTENSION_URL='https://app.getgrass.io/'
ENV GIT_USERNAME=warren-bank
ENV GIT_REPO=chrome-extension-downloader

Expand Down
5 changes: 3 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ def run():
email = os.getenv('GRASS_USER')
password = os.getenv('GRASS_PASS')
extension_id = os.getenv('EXTENSION_ID')
extension_url = os.getenv('EXTENSION_URL')

# Check if credentials are provided
if not email or not password:
Expand All @@ -35,8 +36,8 @@ def run():

try:
# Navigate to a webpage
logging.info('Navigating to the website...')
driver.get("https://app.getgrass.io/")
logging.info(f'Navigating to {extension_url} website...')
driver.get(extension_url)
time.sleep(random.randint(3,7))

logging.info('Entering credentials...')
Expand Down

0 comments on commit fb7df5d

Please sign in to comment.