Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- '''
- Download de um arquivo da web
- Diego Mendes Rodrigues
- -
- Instalar o wget:
- pip install wget
- '''
- import wget
- # URL do arquivo de origem
- url = "https://assets.ubuntu.com/v1/29985a98-ubuntu-logo32.png"
- # Pasta onde o arquivo será armazenado + Nome do arquivo
- # arquivo_pasta = "G:\\Imagens\\"
- arquivo_pasta = "./"
- arquivo_nome = "Ubuntu.png"
- # Download do arquivo
- print("Download do arquivo:")
- wget.download(url, arquivo_pasta + arquivo_nome)
- print(f"+ {arquivo_nome}: OK")
Add Comment
Please, Sign In to add comment