How to pull ratings from google maps?

This is a very superficial question. I am looking for a way to compare, lets say, McDonald's and KFC in a particular area. I want to grep the ratings of both and compare their median. While I am familiar with the programming part, I am not familiar which platform to use to pull these data. (Is there a library/package similar to yfinance for stocks?)