Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] De-duplicate across campgrounds to find multiple date matches #7

Open
bryanwhiting opened this issue Jul 27, 2022 · 0 comments

Comments

@bryanwhiting
Copy link

This is great.

❯ find-campsites \
>     --campground 737 \
>     --nights 1 \
>     --day Wednesday \
>     --day Saturday \
>     --months 3 \
>     --api reservecalifornia
INFO	2022-07-26 22:33:24,822	Found campground: South Camp (sites 1-37) (campground id: 737)
INFO	2022-07-26 22:33:24,828	Found Availability:

campground                 campsite        date        weekday
South Camp (sites 1-37)    Campsite #18    08/17/22    Wednesday
South Camp (sites 1-37)    Campsite #04    08/24/22    Wednesday
South Camp (sites 1-37)    Campsite #35    08/24/22    Wednesday

This is a bit nuts :). the camply package de-duplicates and counts number of avialable reservations for a day.

❯ find-campsites \
>     --campground 734 \
>     --nights 1 \
>     --day Monday \
>     --day Friday \
>     --day Saturday \
>     --months 3 \
>     --api reservecalifornia
INFO	2022-07-26 22:33:55,450	Found campground: Pines Hollow and Dunes Camp (Sites 38 – 90) (campground id: 734)
INFO	2022-07-26 22:33:55,455	Found Availability:

campground                                     campsite        date        weekday
Pines Hollow and Dunes Camp (Sites 38 – 90)    Campsite #41    08/22/22    Monday
Pines Hollow and Dunes Camp (Sites 38 – 90)    Campsite #55    08/22/22    Monday
Pines Hollow and Dunes Camp (Sites 38 – 90)    Campsite #56    08/22/22    Monday
Pines Hollow and Dunes Camp (Sites 38 – 90)    Campsite #58    08/22/22    Monday
Pines Hollow and Dunes Camp (Sites 38 – 90)    Campsite #60    08/22/22    Monday
Pines Hollow and Dunes Camp (Sites 38 – 90)    Campsite #64    08/22/22    Monday
Pines Hollow and Dunes Camp (Sites 38 – 90)    Campsite #65    08/22/22    Monday
Pines Hollow and Dunes Camp (Sites 38 – 90)    Campsite #66    08/22/22    Monday
Pines Hollow and Dunes Camp (Sites 38 – 90)    Campsite #67    08/22/22    Monday
Pines Hollow and Dunes Camp (Sites 38 – 90)    Campsite #68    08/22/22    Monday
Pines Hollow and Dunes Camp (Sites 38 – 90)    Campsite #70    08/22/22    Monday
Pines Hollow and Dunes Camp (Sites 38 – 90)    Campsite #71    08/22/22    Monday
Pines Hollow and Dunes Camp (Sites 38 – 90)    Campsite #77    08/22/22    Monday
Pines Hollow and Dunes Camp (Sites 38 – 90)    Campsite #84    08/22/22    Monday
Pines Hollow and Dunes Camp (Sites 38 – 90)    Campsite #87    08/22/22    Monday
Pines Hollow and Dunes Camp (Sites 38 – 90)    Campsite #88    08/22/22    Monday
Pines Hollow and Dunes Camp (Sites 38 – 90)    Campsite #89    08/22/22    Monday
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant