Skip to content

Commit

Permalink
Merge pull request #670 from bravochar/bugfixes
Browse files Browse the repository at this point in the history
Bugfixes: Headless Window Size, Reserve Price, Logging
  • Loading branch information
DakkJaniels authored Apr 14, 2021
2 parents 0ed7eb0 + ee3b2da commit a0ba69e
Show file tree
Hide file tree
Showing 7 changed files with 204 additions and 208 deletions.
7 changes: 4 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,15 @@
.profile
.profile-amz*
.vscode/
/config/*_credentials.json
/config/*.json
/config/apprise.conf
/config/apprise_config.json
Pipfile.lock
__pycache__/
build/
dist/
geckodriver.log
html_saves/*.html
screenshots/*.png
logs/*.log*
logs/*.log*
tags
.venv*
1 change: 1 addition & 0 deletions __INSTALL (RUN FIRST).bat
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
@echo on
pip install pipenv
pause
set PIPENV_VENV_IN_PROJECT=1
pipenv install


Expand Down
7 changes: 5 additions & 2 deletions cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import platform
import shutil
import time
import traceback
from datetime import datetime
from functools import wraps
from pathlib import Path
Expand Down Expand Up @@ -63,11 +64,13 @@ def notify_on_crash(func):
def decorator(*args, **kwargs):
try:
func(*args, **kwargs)

except KeyboardInterrupt:
pass
else:

except Exception as e:
log.error(traceback.format_exc())
notification_handler.send_notification(f"FairGame has crashed.")
raise

return decorator

Expand Down
17 changes: 16 additions & 1 deletion config/fairgame.conf
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,11 @@
"CHECKOUT_TITLES": [
"Amazon.com Checkout",
"Amazon.co.uk Checkout",
"Amazon.ca Checkout",
"Amazon.es Checkout",
"Amazon.de Checkout",
"Amazon.fr Checkout",
"Amazon.it Checkout",
"Place Your Order - Amazon.ca Checkout",
"Place Your Order - Amazon.co.uk Checkout",
"Amazon.de Checkout",
Expand Down Expand Up @@ -165,7 +170,14 @@
"Complete your Amazon Prime sign up"
],
"OUT_OF_STOCK": [
"Out of Stock - AmazonSmile Checkout"
"Out of Stock - AmazonSmile Checkout",
"Out of Stock - Amazon.com Checkout",
"Out of Stock - Amazon.ca Checkout",
"Out of Stock - Amazon.de Checkout",
"Out of Stock - Amazon.fr Checkout",
"Out of Stock - Amazon.co.uk Checkout",
"Out of Stock - Amazon.es Checkout",
"Out of Stock - Amazon.it Checkout"
],
"NO_SELLERS": [
"Currently, there are no sellers that can deliver this item to your location.",
Expand Down Expand Up @@ -220,6 +232,9 @@
],
"ATC": [
"//div[@id='aod-pinned-offer' or @id='aod-offer' or @id='olpOfferList']//input[@name='submit.addToCart']"
],
"ATC_BUY_BOX":[
"//div[@id='qualifiedBuybox']//input[@id='add-to-cart-button']"
]
}
}
Expand Down
Loading

0 comments on commit a0ba69e

Please sign in to comment.