Giter VIP home page Giter VIP logo

find-campsite's Introduction

find-campsite

This is a simple script that checks recreation.gov or reservecalifornia.com for any sites at a campground available for a length of time starting on a particular day of the week.

Install

npm install -g find-campsite or yarn global add find-campsite should do the trick.

Usage

find-campsite --campground <campground ID> [--api recreation_gov OR reserve_ca] [--day fri] [--nights 2]

Campground IDs

On recreation.gov, you can find a campground's ID by looking at your URL bar on recreation.gov. In the URL https://www.recreation.gov/camping/campgrounds/231958 for Arroyo Seco Campground, 231958 is the ID.

reservecalifornia.com is a bit trickier. You will need to find and click through to a campsite and monitor the Network tab in your browser's developer tools for a request to calirdr.usedirect.com/rdr/rdr/search/grid. The FacilityId referenced in the request body is the ID.

I welcome any PRs to introduce text-based campground lookups!

Examples

> find-campsite --campground 231958
Checking for sites at ARROYO SECO available on a Friday for 2 nights.

Found 17 matching itineraries:

6/26/2020 to 6/28/2020 (in 5 weeks):
- 033 (MCML) https://www.recreation.gov/camping/campsites/70166
- 030 (MCML) https://www.recreation.gov/camping/campsites/70217
- 003 (MCML) https://www.recreation.gov/camping/campsites/71576
- 021 (MCML) https://www.recreation.gov/camping/campsites/71596
- 023 (MCML) https://www.recreation.gov/camping/campsites/71929
7/10/2020 to 7/12/2020 (in 7 weeks):
- 033 (MCML) https://www.recreation.gov/camping/campsites/70166
- 030 (MCML) https://www.recreation.gov/camping/campsites/70217
- 011 (MCML) https://www.recreation.gov/camping/campsites/70882
- 029 (MCML) https://www.recreation.gov/camping/campsites/71168
- 037 (PCLL) https://www.recreation.gov/camping/campsites/71401
- 028 (MCML) https://www.recreation.gov/camping/campsites/71602
...

Want to check if there's a site for a quick overnighter?

> find-campsite -c 231958 -d mon -n 1
Checking for sites at ARROYO SECO available on a Monday for 1 night.

No sites found for the given constraints :(

Drats :(

find-campsite's People

Contributors

awhitty avatar dependabot[bot] avatar dianeschulze avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.