Answer the question
In order to leave comments, you need to log in
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
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question