juftin / camply

camply, the campsite finder ⛺️ - a tool to find campsites at sold out campgrounds through sites like recreation.gov
https://juftin.com/camply/
MIT License
464 stars 89 forks source link

Reserve California website availability not reflecting in Camply searching #298

Open Liang-KS opened 11 months ago

Liang-KS commented 11 months ago

Describe the bug

I was able to see 8 sites available on September 23rd in Pfeiffer Big Sur SP on ReserveCalifornia, but camply cannot see that even after I removed the cache files in "~/.local/lib/python3.9/site-packages/camply/providers/usedirect/ReserveCalifornia"

BUT!! If I search for less popular October 4th, camply can see the same number of available sites as the website! very interesting!

Original Camply Command (with --debug)

camply campsites --provider ReserveCalifornia --campground 767 --campground 611 --campground 612 --start-date 2023-09-16 --end-date 2023-09-24 --day Saturday --polling-interval 5 --notifications pushover --notifications telegram --search-forever --debug

Expected behavior

I am expecting to see camply could see the same availability I can see on the website.

Console Output (with --debug)

[2023-09-14 10:52:59] CAMPLY   camply, the campsite finder ⛺️
[2023-09-14 10:52:59] DEBUG    Setting up camply debugging
[2023-09-14 10:52:59] DEBUG    Camply Version: 0.29.0
[2023-09-14 10:52:59] DEBUG    Python Version: 3.9.2
[2023-09-14 10:52:59] DEBUG    Platform: linux
[2023-09-14 10:52:59] INFO     Using Camply Provider: "ReserveCalifornia"
[2023-09-14 10:52:59] INFO     2 booking nights selected for search, ranging from 2023-09-16 to 2023-09-23
[2023-09-14 10:52:59] INFO     Searching for booking nights on Saturday
[2023-09-14 10:53:00] INFO     Searching for campsites every 5 minutes.
[2023-09-14 10:53:00] INFO     Notifications active via: <SilentNotifications>, <PushoverNotifications>, <TelegramNotifications>
[2023-09-14 10:53:00] INFO     Searching across 3 campgrounds
[2023-09-14 10:53:00] INFO         ⛰  Pfeiffer Big Sur SP (#690) - 🏕  Main Camp (sites 131-188) (#767)
[2023-09-14 10:53:00] INFO         ⛰  Pfeiffer Big Sur SP (#690) - 🏕  South Camp (sites 1-78) (#611)
[2023-09-14 10:53:00] INFO         ⛰  Pfeiffer Big Sur SP (#690) - 🏕  Weyland Camp (sites 79-130) (#612)
[2023-09-14 10:53:00] INFO     Searching Main Camp (sites 131-188), Pfeiffer Big Sur SP (767) for availability: September, 2023
[2023-09-14 10:53:00] DEBUG    Starting new HTTPS connection (1): calirdr.usedirect.com:443
[2023-09-14 10:53:00] DEBUG    https://calirdr.usedirect.com:443 "POST /rdr/rdr/search/grid HTTP/1.1" 200 None
[2023-09-14 10:53:01] INFO             ❌       0 total sites found in month of September
[2023-09-14 10:53:01] INFO     Searching South Camp (sites 1-78), Pfeiffer Big Sur SP (611) for availability: September, 2023
[2023-09-14 10:53:01] DEBUG    https://calirdr.usedirect.com:443 "POST /rdr/rdr/search/grid HTTP/1.1" 200 None
[2023-09-14 10:53:02] INFO             ❌       0 total sites found in month of September
[2023-09-14 10:53:02] INFO     Searching Weyland Camp (sites 79-130), Pfeiffer Big Sur SP (612) for availability: September, 2023
[2023-09-14 10:53:02] DEBUG    https://calirdr.usedirect.com:443 "POST /rdr/rdr/search/grid HTTP/1.1" 200 None
[2023-09-14 10:53:02] INFO             ❌       0 total sites found in month of September
[2023-09-14 10:53:02] INFO     ❌ ❌ ❌ ❌ 0 Reservable Campsites Matching Search Preferences
[2023-09-14 10:53:02] INFO     No Campsites were found, we'll continue checking

It seems like when camply searching ReserveCalifornia, it will only see something and notify me in the morning, for me it's 8AM Pacific time, other than that, I cannot receive anything during the rest of the day.

jeffhammett commented 5 months ago

ReserveCalifornia doesn’t release sites to be rebooked right away when they are cancelled. If I have a reservation and cancel it, it cannot be reserved by someone else until 8am the following day. When viewing the ReserveCalifornia website these sites are identifiable by a lock icon on the specific dates. But whatever is being returned for those sites by the API is deemed non-reservable by Camply.

It would be nice if Camply could identify the locked sites as becoming available at 8am and flag that somehow.