Oauth2 in python

I want to write script tweets from python (like here ), however, when I try to call

import oauth2 as oauth

I just get this error:

ImportError: no module named oauth2

Where can I get this module? Thanks

+3
source share
2 answers

Make sure you have the protocol installed. Then in the terminal, enter the following command:

$ pip install oauth2
+4
source

Source: https://habr.com/ru/post/1785567/