Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
den-is committed Jun 24, 2024
1 parent 9f80611 commit b61d13c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
GH_USERNAME=your-gh-username
GH_LOGIN_PASSWORD=your_github_password
GH_PASSWORD=your_github_password
CHROME_DRIVER_PATH=~/Downloads/chromedriver-mac-x64/chromedriver

# optional
Expand Down
6 changes: 4 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import json
import os
import sys
import time
from pathlib import Path

Expand All @@ -15,17 +16,18 @@
try:
GH_USERNAME = os.environ["GH_USERNAME"]
GH_LOGIN_PASSWORD = os.environ["GH_LOGIN_PASSWORD"]
GH_LOGIN_WAIT = int(os.getenv("GH_LOGIN_WAIT", 60))

GH_LOGIN_URL = os.getenv("GH_LOGIN_URL", "https://github.com/login")
GH_STARS_URL = f"https://github.com/{GH_USERNAME}?tab=stars"

CHROME_DRIVER_PATH_ENV = os.environ["CHROME_DRIVER_PATH"]
CHROME_DRIVER_PATH = Path(CHROME_DRIVER_PATH_ENV).expanduser().resolve()
GH_LOGIN_WAIT = int(os.getenv("GH_LOGIN_WAIT", 60))

OUTPUT_FILE = os.getenv("OUTPUT_FILE", "output.json")
except KeyError as e:
print(f"Missing environment variable: {e}")
exit(1)
sys.exit(1)

OUTPUT_DICT = {}

Expand Down

0 comments on commit b61d13c

Please sign in to comment.