jenzhng / campground-checker

Ruby app that checks reservation.gov for campsite vacancies

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

campground-checker

Command line Ruby app that checks reservation.gov for campsite vacancies. App takes input such as camp type, number of nights, and park id. You can find the park id for specific campsites on recreation.gov

Testing

  • retrieve park name
  • retrieve availability for multiple parks

Example Usage

ruby campground-checker.rb --start_date 2022-05-01 --parks 232508
{:start_date=>"2022-05-01", :parks=>"232508"}
BLACKWOODS CAMPGROUND
ruby campground-checker.rb --start_date 2022-05-01 --end_date 2022-05-31 --parks 10149034 --campsite_type 'CABIN ELECTRIC' --nights 5
{:parks=>["10149034"], :campsite_ids=>[], :start_date=>"2022-05-01", :end_date=>"2022-05-31", :campsite_type=>"CABIN ELECTRIC", :nights=>"5"}
there are campsites open from 2022-05-01 to 2022-05-31!!!
The Bayberry Dunes Beachview House (10149034): 1 site(s) open out of 1 site(s)

About

Ruby app that checks reservation.gov for campsite vacancies


Languages

Language:Ruby 100.0%