This is the official documentation, but there are more detailed instructions for various OS:
- Mac: https://www.swtestacademy.com/install-chrome-driver-on-mac/
- Windows: https://jonathansoma.com/lede/foundations-2018/classes/selenium/selenium-windows-install/
- Debian: https://tecadmin.net/setup-selenium-with-chromedriver-on-debian/
You'll have to put in your own keyword arguments to msg_alert
, according to the following:
to
is your number appended by the carrier's SMS Gateway Address:- Verizon – [email protected]
- T-Mobile – [email protected]
- Sprint – [email protected]
- AT&T – [email protected]
- Boost Mobile – [email protected]
- Cricket – [email protected]
- U.S. Cellular – [email protected]
email_addr
must be Gmail- To get
app_pwd
:- Login to Gmail -> Manage your Google Account -> Security -> Signing in to Google -> App passwords
- Select app and choose other. Enter "camping-bot" and select generate
- DO NOT save this password in plain text. Save it in a password manager, paste it in to the Python application while in use, and delete it afterward.
def msg_alert(
subject,
body,
to="[email protected]",
email_addr="[email protected]",
app_pwd="insert-actual-password"
):
python -m messaging_script.py -p <park> -c <campground> -y <year> -m <month1> <month2> -s <sleep>
months
argument can include one or multiple months and is optional. If not included, the whole year is searched.sleep
defines how long to sleep before searching again. Default is 86400 seconds (24 hrs).
To search Angel Island's North Garrison Group camp for all of 2022:
python -m messaging_script.py -p angel-island -c north-garrison-group-camp -y 2022
To re-run the search every hour instead of every day:
python -m messaging_script.py -p angel-island -c north-garrison-group-camp -y 2022 -s 3600
To search Angel Island's North Garrison Group camp for July 2022:
python -m messaging_script.py -p angel-island -c north-garrison-group-camp -y 2022 -m 7
To search Angel Island's North Garrison Group camp for July and October 2022:
python -m messaging_script.py -p angel-island -c north-garrison-group-camp -y 2022 -m 7 10