How can I log in with OAuth in Python3?

  • We use github.com/dimka665/vk for our project. See how they log in ... - Alexander Korablev
  • @ Aleksandr Korablev it doesn’t work, more precisely, authorization doesn’t work - Nikitc
  • looked at our code. You're right. We take a token from configs. - Alexander Korablev
  • @Alexander Korablev Any ideas? I really need to log in - Nikitc

1 answer 1

If you use the vk library, you must first manually go to the OAuth link, get the access_token and paste it here:

session = vk.Session(access_token="ваш токен"). 

After that, you can use API functions that are available only after authorization.