Closed BelKed closed 1 year ago
Nice job overall. 💪🏼 It would definitely be useful to have another pair of eyes here.
Weirdly, CI fails here, but it runs on my fork: https://github.com/BelKed/pycaching/actions/runs/4533795088
I am not completely sure about the CI failures as well, but I do not really feel like this should be merged until we are able to resolve this. Maybe rebasing the code on the latest master change something here?
I believe it's fine now :)
Thanks, looks good for me. Re-requesting review from @tomasbedrich before merging.
This PR implements a new way of searching for caches using the search API, which allows using filters and much more (with the
Geocaching.advanced_search()
method).This search method is also faster because it loads less data (the data is in JSON form). Data parsing is then easier and clearer.
Now we have a main search function —
Geocaching.advanced_search()
. BothGeocaching.search()
andGeocaching.search_rect()
internally useGeocaching.advanced_search()
, which reduces repeating code, since the implementation would be almost the same.I've also updated the docstrings for those functions and added some tests.
Related PR:
Related issues: