Closed blamejoel closed 3 months ago
Seems like this can be remediated by adding "Closed" to api_config.py CAMPSITE_UNAVAILABLE_STRINGS
https://github.com/juftin/camply/blob/310fbe6e246f6da86e9d8dd96470faa83fd0581f/camply/config/api_config.py#L80
Hey @blamejoel, I can see that you're using Python 3.6
and camply 0.4.9
- unfortunately camply (currently on 0.32.5
) only supports the currently supported versions of Python (3.8
- 3.12
) so the bug you're reporting was fixed some time ago. You'll need to run an upgraded version of camply / Python to resolve your issue.
```console β― camply --debug campsites --campground 232447 --start-date 2024-05-01 --end-date 2024-05-31 --equipment trailer 19 --weekends --nights 2 [2024-04-30 15:40:55] CAMPLY camply, the campsite finder βΊοΈ [2024-04-30 15:40:55] DEBUG Setting up camply debugging [2024-04-30 15:40:55] DEBUG Camply Version: 0.32.2 [2024-04-30 15:40:55] DEBUG Python Version: 3.11.8 [2024-04-30 15:40:55] DEBUG Platform: darwin [2024-04-30 15:40:55] INFO Using Camply Provider: "RecreationDotGov" [2024-04-30 15:40:55] INFO 8 booking nights selected for search, ranging from 2024-05-03 to 2024-05-25 [2024-04-30 15:40:55] INFO Searching for booking nights on Friday and Saturday [2024-04-30 15:40:55] INFO Searching for availabilities with 2 consecutive night stays. [2024-04-30 15:40:55] DEBUG Starting new HTTPS connection (1): ridb.recreation.gov:443 [2024-04-30 15:40:57] DEBUG https://ridb.recreation.gov:443 "GET /api/v1/facilities/232447?full=True HTTP/1.1" 200 11920 [2024-04-30 15:40:57] INFO 1 Matching Campgrounds Found [2024-04-30 15:40:57] INFO β° Yosemite National Park, CA (#2991) - π Upper Pines Campground (#232447) [2024-04-30 15:40:57] INFO Filtering Campsites based on Equipment: trailer [2024-04-30 15:40:57] INFO Searching across 1 campgrounds [2024-04-30 15:40:57] DEBUG Starting new HTTPS connection (1): www.recreation.gov:443 [2024-04-30 15:40:57] DEBUG https://www.recreation.gov:443 "GET /api/search/campsites?start=0&size=1000&fq=asset_id%3A232447&include_non_site_specific_campsites=True HTTP/1.1" 200 None [2024-04-30 15:40:57] INFO Metadata fetched for 237 campsites [2024-04-30 15:40:57] INFO Searching Upper Pines Campground, Yosemite National Park, CA (232447) for availability: May, 2024 [2024-04-30 15:40:57] DEBUG Starting new HTTPS connection (1): www.recreation.gov:443 [2024-04-30 15:40:57] DEBUG https://www.recreation.gov:443 "GET /api/camps/availability/campground/232447/month?start_date=2024-05-01T00%3A00%3A00.000Z HTTP/1.1" 200 None [2024-04-30 15:40:57] INFO β 0 total sites found in month of May [2024-04-30 15:40:57] INFO β β β β 0 Reservable Campsites Matching Search Preferences [2024-04-30 15:40:57] CAMPLY Exiting camply π ```
Describe the bug When searching for campsite availability, camply returns positive results for the search criteria, however when clicking on the link to recreation.gov for the respective site, the booking calendar shows "closure" for those dates.
Original Camply Command (with
--debug
)Additional context
< Add any other context about the problem here. >