Avatar ·

python download VK files

📁 Advanced Python Topics, Useful Tips and Lifehacks, python3, requests, work

Connected the VK API. It is necessary to send files to the server as described on this page - P.S. Downloading files to the user wall

   import  vk  from  time  import  sleep  import  sys  import  urllib.request  import  urllib.parse  import  base64  import  re crunvkapi = vk.api (access_token =  'token' , app_id =  'd' ) sleep ( 0.5 ) data = vkapi.photos.getWallUploadServer (user_id =  "72374405" ) data_user_id = data [