bin/workshops.py
def process(all_urls, verbose):
    '''
    Process URLs, returning list of valid info structures and list
    of URLs found faulty.
    '''
    results = []
    faulty = []
    for url in all_urls:
        info = fetch(url)
        adjust(info, url)
        info['user'], info['slug'] = extract_info_from_url(url)
        info['url'] = GITHUB_IO_TEMPLATE.format(info['user'], info['slug'])
        if check_info(url, info):
            if verbose:
                print('+ {0}'.format(url))
            results.append(info)
        else:
            if verbose:
                print('!'.format(url))
            faulty.append(url)
    return results, faulty

    Process URLs, returning list of valid info structures and list
    of URLs found faulty.
    
Process URLs, returning list of valid info structures and list
of URLs found faulty.
Process URLs returning list of valid info structures and list of URLs found faulty .
def process(all_urls, verbose):
    results = []
    faulty = []
    for url in all_urls:
        info = fetch(url)
        adjust(info, url)
        info['user'], info['slug'] = extract_info_from_url(url)
        info['url'] = GITHUB_IO_TEMPLATE.format(info['user'], info['slug'])
        if check_info(url, info):
            if verbose:
                print('+ {0}'.format(url))
            results.append(info)
        else:
            if verbose:
                print('!'.format(url))
            faulty.append(url)
    return results, faulty
def process ( all_urls , verbose ) : results = [ ] faulty = [ ] for url in all_urls : info = fetch ( url ) adjust ( info , url ) info [ 'user' ] , info [ 'slug' ] = extract_info_from_url ( url ) info [ 'url' ] = GITHUB_IO_TEMPLATE . format ( info [ 'user' ] , info [ 'slug' ] ) if check_info ( url , info ) : if verbose : print ( '+ {0}' . format ( url ) ) results . append ( info ) else : if verbose : print ( '!' . format ( url ) ) faulty . append ( url ) return results , faulty
Process URLs, returning list of valid info structures and list
of URLs found faulty.
Process URLs returning list of valid info structures and list of URLs found faulty .
'''
    Process URLs, returning list of valid info structures and list
    of URLs found faulty.
    '''
all_urls
verbose