Download file from web in Python 3

前端 未结 9 693
星月不相逢
星月不相逢 2020-11-22 16:43

I am creating a program that will download a .jar (java) file from a web server, by reading the URL that is specified in the .jad file of the same game/application. I\'m usi

9条回答
  •  半阙折子戏
    2020-11-22 17:13

    If you are using Linux you can use the wget module of Linux through the python shell. Here is a sample code snippet

    import os
    url = 'http://www.example.com/foo.zip'
    os.system('wget %s'%url)
    

提交回复
热议问题