get_training_data.py 文件源码

python
阅读 22 收藏 0 点赞 0 评论 0

项目:BachMaker 作者: anbrjohn 项目源码 文件源码
def download(files, delay=0, prefix=file_prefix, convert=False):
    # Given a list of files, downloads each, optionally also converts to csv
    total = len(files)
    i = 1
    for file in files:
        filename = prefix+file
        wget.download(filename)
        print("Downloaded", i, "files out of", total)
        i += 1
        # In case the webpage doesn't like many rapid downloads
        time.sleep(delay)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号