import searchconsole #account = searchconsole.authenticate(client_config='c:/keys/client_secret_162277274609-v1fsq5iscscl7e2ta4a8tc0og5tehl44.apps.googleusercontent.com.json',serialize='out.json') account = searchconsole.authenticate(client_config='c:/keys/client_secret_162277274609-v1fsq5iscscl7e2ta4a8tc0og5tehl44.apps.googleusercontent.com.json',credentials='c:/keys/out.json') #account.redirect_uri = 'https://localhost' webproperty = account['https://innews.com.tw/'] report = webproperty.query.range('today', days=-7).dimension('query').get() print(report.rows) #http://localhost:8080