def main(): params = { 'default_srcdir': os.path.expanduser('~/Downloads'), 'default_dstdir': notoconfig._values.get('adobe_data'), 'default_regex': r'Noto_Sans_CJK-\d{4}-\d{2}-\d{2}\.zip' } grab_download.invoke_main( src_vendor='Adobe', name_date_re=re.compile(r'(.*)-(\d{4})-(\d{2})-(\d{2})\.zip'), extract_fn=unzip_to_directory_tree, default_params=params)
def main(): params = { 'default_srcdir': os.path.expanduser('~/Downloads'), 'default_dstdir': notoconfig._values.get('monotype_data'), 'default_regex': r'Noto.*_\d{8}.zip', } grab_download.invoke_main( src_vendor='Monotype', name_date_re=re.compile(r'(.*)_(\d{4})(\d{2})(\d{2})\.zip'), extract_fn=unzip_to_directory_tree, default_params=params)
def main(): params = { "default_srcdir": os.path.expanduser("~/Downloads"), "default_dstdir": notoconfig._values.get("adobe_data"), "default_regex": r"Noto_Sans_CJK-\d{4}-\d{2}-\d{2}\.zip", } grab_download.invoke_main( src_vendor="Adobe", name_date_re=re.compile(r"(.*)-(\d{4})-(\d{2})-(\d{2})\.zip"), extract_fn=unzip_to_directory_tree, default_params=params, )