Advertisement
amaimon02

Usar requests para baixar arquivos

Jul 29th, 2019
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.27 KB | None | 0 0
  1. import requests
  2.  
  3. print('Iniciando o download...')
  4. r = requests.get('https://www43.zippyshare.com/d/itjiUDZK/20545/Blood_Lad_02_AL-Anbient.mkv')
  5. with open('/home/amaimonx/Área de Trabalho/ProjetosPy/TestFile.mkv', 'wb') as fd:
  6.     fd.write(r.content)
  7. print('Concluído!')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement