Closed saito828koki closed 1 year ago
The position of self.__scroll() in these lines is incorrect, causing self.__expand_reviews() to be executed before the 'expand more' buttons are loaded. I believe that self.__scroll() was intended to be placed immediately after the comment # scroll to load reviews. https://github.com/gaspa93/googlemaps-scraper/blob/b1bc007ecb3f212697536a31cbfb87dc9e4c0657/googlemaps.py#L163-L172
self.__scroll()
self.__expand_reviews()
# scroll to load reviews
Thank you for notice this, MR approved
The position of
self.__scroll()
in these lines is incorrect, causingself.__expand_reviews()
to be executed before the 'expand more' buttons are loaded. I believe that self.__scroll() was intended to be placed immediately after the comment# scroll to load reviews
. https://github.com/gaspa93/googlemaps-scraper/blob/b1bc007ecb3f212697536a31cbfb87dc9e4c0657/googlemaps.py#L163-L172