(awesome_title, readme)
Save the README on local cache directory

    Args:
        awesome_title: Awesome repository title
        readme: Readme content

    Returns:
        None
Save the README on local cache directory
Save the README on local cache directory
def save_readme(awesome_title, readme):
    """Save the README on local cache directory

    Args:
        awesome_title: Awesome repository title
        readme: Readme content

    Returns:
        None
    """
    awesome_cache_directory = os.path.join(CACHE_DIRECTORY, awesome_title)
    awesome_cached_readme = os.path.join(awesome_cache_directory, 'README.md')
    if not os.path.exists(CACHE_DIRECTORY):
        os.mkdir(CACHE_DIRECTORY)
    if not os.path.exists(awesome_cache_directory):
        os.mkdir(awesome_cache_directory)
    with open(awesome_cached_readme, 'w+', encoding='utf8') as readme_md:
        readme_md.write(readme)
def save_readme ( awesome_title , readme ) : awesome_cache_directory = os . path . join ( CACHE_DIRECTORY , awesome_title ) awesome_cached_readme = os . path . join ( awesome_cache_directory , 'README.md' ) if not os . path . exists ( CACHE_DIRECTORY ) : os . mkdir ( CACHE_DIRECTORY ) if not os . path . exists ( awesome_cache_directory ) : os . mkdir ( awesome_cache_directory ) with open ( awesome_cached_readme , 'w+' , encoding = 'utf8' ) as readme_md : readme_md . write ( readme )