This repository has been archived by the owner on Nov 2, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from ngshiheng/add-scheduler
Bot now uses configparser & schedule
- Loading branch information
Showing
9 changed files
with
160 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,27 @@ | ||
[chromedriver] | ||
# REQUIRED | ||
# File path to your `chromedriver` | ||
# Download `chromedriver` at https://chromedriver.chromium.org/downloads | ||
path = /usr/bin/chromedriver | ||
|
||
[website] | ||
# OPTIONAL | ||
url = https://www.myasnb.com.my/uhsessionexpired | ||
|
||
[browser] | ||
# OPTIONAL | ||
# Browser screen width and height | ||
width = 1600 | ||
height = 900 | ||
|
||
[delay] | ||
# OPTIONAL | ||
# Randomize delay between clicks and submissions between `min_seconds` and `max_seconds`. | ||
# I do not recommend setting `min_seconds` to anything less than 1 second | ||
min_seconds = 1.00 | ||
max_seconds = 1.25 | ||
|
||
[schedule] | ||
# OPTIONAL | ||
# Attempt to purchase ASNB units every `schedule_minutes` minutes. Default run job every 5 minutes | ||
schedule_minutes = 5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.