├── README.md └── gui.py /README.md: -------------------------------------------------------------------------------- 1 | # viedo_downloader 2 | a simple GUI internet viedo downloader 3 | 4 | ## download 5 | https://github.com/sorrowise/viedo_downloader/releases 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /gui.py: -------------------------------------------------------------------------------- 1 | from gooey import Gooey, GooeyParser 2 | from subprocess import call 3 | 4 | 5 | @Gooey(program_name='Internet Video Downloader',required_cols=1) 6 | def parse_args(): 7 | parser = GooeyParser(description='download youtube and bilibili viedo') 8 | parser.add_argument('url',help="the url of the viedo you want to download") 9 | parser.add_argument('loc',help="the location where you save the viedo",widget='DirChooser') 10 | parser.add_argument('--proxy',help="your proxy server",default='""') 11 | args = parser.parse_args() 12 | return args 13 | 14 | if __name__ == '__main__': 15 | args = parse_args() 16 | url = args.url 17 | loc = args.loc 18 | proxy = args.proxy 19 | output = '"' + loc + '\%(title)s.%(ext)s' + '"' 20 | cmd = 'youtube.exe --output ' + output + ' --proxy ' + proxy + " " + url 21 | call(cmd,shell=True) 22 | --------------------------------------------------------------------------------