N
N
Nikita Manannikov2020-02-24 14:39:23
Python
Nikita Manannikov, 2020-02-24 14:39:23

How to download a file from VK via Requests?

Hello!
During operation, the VK bot receives the link
https://vk.com/doc163458875_538642453?hash=47b978e...
(inside the .txt with the text of the article)
If you open it with a browser, the attachment file will automatically download.
The task is to write code to save the file on the computer for further processing.

I read the documentation, perhaps not well enough. Through requests I can download the whole page, the file is not.
I would also be very grateful for the explanations of the download process at the level of network protocols.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
HemulGM, 2020-02-24
@Headcapitan

HTTP.Get

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question