Getting it running in Google Colab #54
-
|
hi, i am trying to get it to run in Google Colab https://colab.research.google.com/drive/1lpGPtbYGVgmPhd8QwGciQY5zl1lP7MLo#scrollTo=2gM4riuS5TQg but even on a complete new environment I get this error is there an Google Colab example where somebody got it running? Googling did not help. Thx |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
|
Hi @franzenzenhofer, From Google Colab, you'll want to do: account = searchconsole.authenticate(client_config='auth/client_secrets.json', flow='console')For more context: By default, the package tries to help you authenticate by opening a local web server and browser for you to sign in and authenticate with. This is the "web" flow. It's not possible to do that on Google Colab so there is an alternative "console" flow which prints a link that you can manually open, authenticate with, and copy and paste into your notebook. |
Beta Was this translation helpful? Give feedback.
Hi @franzenzenhofer,
From Google Colab, you'll want to do:
For more context:
By default, the package tries to help you authenticate by opening a local web server and browser for you to sign in and authenticate with. This is the "web" flow. It's not possible to do that on Google Colab so there is an alternative "console" flow which prints a link that you can manually open, authenticate with, and copy and paste into your notebook.