Skip to main content
* rgov - Recreation.gov Campground Checker

[[http://www.gnu.org/licenses/gpl-3.0][https://img.shields.io/badge/License-GPL%20v3-blue.svg]]

=rgov= is a command line program to check for campground availability on
Recreation.gov. While other recreation.gov scrapers exist, this one aims to
also provide a simple search command for quickly finding the campsite ids that
are necessary for checking campgrounds. It also includes a daemon to check for
availability automatically.

It is becoming increasingly more difficult to find campsites on Recreation.gov,
so if you use this tool, please use it with discretion!

** Installation

Requires: Python 3.6+

With pip:

$ =pip install rgov=

** Quick Start

First, find your campgrounds id (usually a six-digit number):

$ =rgov search <campground>=

You can also find the id in the url of the campgound's page on Recreation.gov.

To check if there are available sites (separate multiple ids with spaces):

$ =rgov check <campground id(s)> --date <mm-dd-yyyy> --length <number of nights>=

If there aren't, you can run automated checks. Start the daemon with your
preferred method of notification (either a notification program or your own
shell command):

$ =rgov daemon <campground id(s)> --date <...> --length <...> --command <your command>=

This will check every five minutes.

** Commands
*** Search

Search for campground ids for user with the =check= and =daemon= commands:

$ =rgov search <search term(s)>=

Once you get the id, you can use that to check for availability.

If the index has been built with descriptions (see the reindex command),
you can search in the campground descriptions like this:

$ =rgov search <search term(s)> --descriptions=

*** Check

The check command quickly searches campgrouns for availability and prints which
sites are available, if any.

$ =rgov check <campground id(s)> -date <mm-dd-yyyy> -length <nights>=

**** Options

| =--date[-d]= | The date to check (mm-dd-yyyy) |
| =--length[-l]= | The number of days you'll be staying |
| =--url[-u]= | Show the url of campground |

*** Daemon

Similiar to the =check= command, the =daemon= command starts a daemon that
checks for availability every five minutes in the background. The method of
notification is up to you, and can either be a notification program or custom
shell command.

$ =rgov daemon <campground id(s)> --date <mm-dd-yyyy> --length <nights> --notifier <notification program> --command <shell command>=

**** Options

| =--date[-d]= | The date to check (mm-dd-yyyy) |
| =--length[-l]= | The number of days you'll be staying |
| =--notifier[-n]= | Specify a notification program to use (e.g. herbe) |
| =--command[-c]= | The shell command to run if site(s) are found |

*** Reindex

This only needs to be run if you wish to search for campgrounds by description,
which is useful for finding campground by city, region, or park name. It will
download the facility data from recreation.gov, and build the index from that.

You can add the descriptions to the search index like this:

$ =rgov reindex --with-descriptions=

For any reason, you can remove the descriptions with:

$ =rgov reindex=

** Todo

[ ] Add additional ways for notifications to be sent (e.g. phone/email)

[ ] Write more testing

Metadata

Release files for rgov 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rgov 0.2.2
File Size Uploaded
rgov-0.2.2.tar.gz 58.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for rgov 0.2.2
File Interpreter ABI Platform
rgov-0.2.2-py3-none-any.whl Python 3 none any Details

Total release size: 118.7 kB

Release files / rgov-0.2.2.tar.gz

Download URL rgov-0.2.2.tar.gz
Size 58.6 kB
Tags Source
SHA-256 checksum
How to use checksums
02bd840a5299f3096968b6c34a8423e1449a07a8b3dd663928e2b9cd22716c22
BLAKE2b-256 checksum
How to use checksums
874f2481d5daef8a1459d8907051e7f9a2877d6691b144addf8d603014fc1867
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.6 CPython/3.9.5 Linux/5.12.14_1

Release files / rgov-0.2.2-py3-none-any.whl

Download URL rgov-0.2.2-py3-none-any.whl
Size 60.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
07849a47f38f8e6b0b35185c09cf9dc94939706dc52dca4b75be906d2bc0d31f
BLAKE2b-256 checksum
How to use checksums
924b9ebb97178c136cd7022f95a4a4549bfad1959cfeb53bf5c421214c0e20bc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.6 CPython/3.9.5 Linux/5.12.14_1

Release history Release notifications | RSS feed

0.6.8

2 release files

0.6.7

2 release files

0.6.6

2 release files

0.6.5

2 release files

0.6.4

2 release files

0.6.3

2 release files

0.6.2

2 release files

0.6.1

2 release files

0.6.0

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.2.3

2 release files

This release

0.2.2 This release

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page