M
M
murmur32018-07-17 06:39:36
Python
murmur3, 2018-07-17 06:39:36

How to get VK user profile photo ID?

I used the photos.get method and the vk_api library.
Python code: 5b4d63d068d8c506969568.jpeg
rev - photo order in anti-chronological order, i.e. new ones first. Of course, in most cases the program will give you what you need: 5b4d64af8eee6279415467.jpeg
But I think that this may not always work: the user can upload photo A instead of photo B, and then change A back to B, to the old photo, and the program will not work correctly. How to solve this problem?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
Konstantin Tolmachev, 2018-07-17
@dark_tke

If you need to get exactly the profile photo, use https://vk.com/dev/users.get
And select what you need in the field set

D
Dimonchik, 2018-07-17
@dimonchik2013

the contact has more than one server, if you
decide what to do - robbing the profile

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question