awhitty / find-campsite

Small script to save actual minutes of your life clicking through recreation.gov
MIT License
27 stars 10 forks source link

Request to Update docs: Reserve California campground IDs now in URL #6

Open xenotropic opened 3 years ago

xenotropic commented 3 years ago

The docs say one has to view Reserve California in network debugger to get campground ids, but at least as of Sep 2021 I'm getting good IDs by clicking through to the campground page on Reserve California (which is often a sub-page of the park page) -- much less awkward. It's the last slug of the URL, so like in

https://www.reservecalifornia.com/Web/#!park/703/614

703 is the park ID (Salt Point), not what one wants; and 614 is the campground ID, which is what one wants for find-campsite.

awhitty commented 3 years ago

Wow! It looks like they've pretty thoroughly updated the site. Thanks for the heads-up. I'll update the docs, and I'll spend some time taking a look at how they've changed it and if there are some new APIs to hook into.

jakegreenbergbell commented 1 year ago

When I try to use the campground ID as is shown in the URL above, or the FacilityID found by looking at Network tab in DevTools, both return No campground with id <campground_id>, any suggestions?