L
L
Le-han2020-09-27 20:04:31
Python
Le-han, 2020-09-27 20:04:31

How to get the name and age of an ok.ru user from a link to his page?

How to get the name and age of an ok.ru user from a link to his page?
Do I need to ask the user for permission to get this information?

I read that there is an API method users.getInfo

But in the testing system (at the bottom of the page)
I get an error

{
error_code:10
error_msg:PERMISSION_DENIED : User must grant an access to permission 'VALUABLE_ACCESS'
error_data:valuable_access
}

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
soremix, 2020-09-27
@SoreMix

Do you need the API or just the name?
If the API - then https://apiok.ru/ext/oauth/permissions
If it's just a name, it doesn't matter how - then you can tritely parse through requests + beautifulsoup4

A
Alex F, 2020-09-27
@delvin-fil

users.getInfo only via [email protected]
Strong justification is not required, but questions may be asked.
5f70d458665d8526605323.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question