Skip to content

A bot which scans for scrapes Hipcamp for open sites and optionally sends a text of the results

License

Notifications You must be signed in to change notification settings

fletchapin/camping-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Install chromedriver

This is the official documentation, but there are more detailed instructions for various OS:

Setting up Text Messaging

You'll have to put in your own keyword arguments to msg_alert, according to the following:

def msg_alert(
    subject,
    body,
    to="0123456789@vtext.com",
    email_addr="someaddr@gmail.com",
    app_pwd="insert-actual-password"
):

Running on a Server

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).

Examples

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

About

A bot which scans for scrapes Hipcamp for open sites and optionally sends a text of the results

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages