Skip to content

Commit

Permalink
Merge pull request #247 from MaxxRK/develop-chase
Browse files Browse the repository at this point in the history
Develop chase
  • Loading branch information
NelsonDane authored May 30, 2024
2 parents 1cd2223 + 908907e commit b67d45f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ DANGER_MODE="false"
# BROKER=BROKER_USERNAME:BROKER_PASSWORD,OTHER_BROKER_USERNAME:OTHER_BROKER_PASSWORD

# Chase
# CHASE=CHASE_USERNAME:CHASE_PASSWORD:CELL_PHONE_LAST_FOUR
# CHASE=CHASE_USERNAME:CHASE_PASSWORD:CELL_PHONE_LAST_FOUR:DEBUG(Optional) TRUE/FALSE
CHASE=

# Fennel
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,11 @@ Made by [MaxxRK](https://github.com/MaxxRK/) using the [chaseinvest-api](https:/
- `CHASE_USERNAME`
- `CHASE_PASSWORD`
- `CELL_PHONE_LAST_FOUR`
Optional .env variables:
- `DEBUG` (Set to `True` to enable debug mode)`

`.env` file format:
- `CHASE=CHASE_USERNAME:CHASE_PASSWORD:CELL_PHONE_LAST_FOUR`
- `CHASE=CHASE_USERNAME:CHASE_PASSWORD:CELL_PHONE_LAST_FOUR:DEBUG`

### Fennel
Made by yours truly using the [fennel-invest-api](https://github.com/NelsonDane/fennel-invest-api). Consider giving me a ⭐
Expand Down
6 changes: 5 additions & 1 deletion chaseAPI.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,12 @@ def chase_init(account, index, botObj=None, loop=None):
name = f"Chase {index}"
try:
account = account.split(":")
debug = bool(account[3]) if len(account) == 4 else False
ch_session = session.ChaseSession(
title=f"chase_{index}", headless=False, profile_path="./creds"
title=f"chase_{index}",
headless=False,
profile_path="./creds",
debug=debug
)
need_second = ch_session.login(account[0], account[1], account[2])
if need_second:
Expand Down

0 comments on commit b67d45f

Please sign in to comment.