Authorization in VK for people
Hello dear reader. If you have ever worked with the Vkontakte API at least once and write everything on
python, probably the authorization of the application forced you to do some squats, after which you either don’t feel your legs and pass out, or you pump in quadriceps and still punch the API like Van Damme .
For some reason, this, it would seem, the most unremarkable stage at first takes a huge amount of time and effort. My task: to help readers of Habr avoid leg injuries.
Next, I propose to consider a small library that allows you to authorize your application for a specific user in one line and get it
access_token. At the end of the article, there is a link to the github repository of this library with quickstart in the
We want a small module that allows you to authorize beautifully, universally and as reliably as possible, and which is very simple to use.
It is worth saying that this solution is an improvement and generalization of the option proposed in this article.
So, we use the
python3.5library for html requests requests and
getpassfor hidden password entry.
Our task: to apply to the correct address several times, to parse each time