I'm trying to get a link from a voice message VKontakte. When you go to it, another link appears that you need to get. What I tried to do:
opener = urllib.request.build_opener() request = urllib.request.Request('https://vk.com/doc67915235_476512804') u = opener.open(request) print(u.geturl()) As a result, the same link is returned again: https://vk.com/doc67915235_476512804 but you need to return: https://psv4.userapi.com/c852436//u67915235/audiomsg/d4/495669fb43.ogg
u- on the page itself, on the headlines. Or open a developer’s tool (F12) in the browser and see what requests were made on the network - gil9red