def crawl_page(project_data, prerequisites):
    ' Picks a random image off of the passed URL.'
    result = {'status': 'success', 'image': None}
    url = project_data.get('url')
    if (not url):
        result['status'] = 'error'
        result['error_message'] = 'URL was not provided.'
        return result
    logger.info('Starting to crawl %s', url)
    images = find_images(url)
    num_images = len(images)
    logger.info('Found %s images', num_images)
    if (num_images == 0):
        result['status'] = 'error'
        result['error_message'] = 'Unable to find images at the provided URL.'
        return result
    logger.info('Picking a random one...')
    image = random.choice(list(images))
    result['image'] = image
    return result
Picks a random image off of the passed URL.
def crawl_page(project_data, prerequisites):
    ' '
    result = {'status': 'success', 'image': None}
    url = project_data.get('url')
    if (not url):
        result['status'] = 'error'
        result['error_message'] = 'URL was not provided.'
        return result
    logger.info('Starting to crawl %s', url)
    images = find_images(url)
    num_images = len(images)
    logger.info('Found %s images', num_images)
    if (num_images == 0):
        result['status'] = 'error'
        result['error_message'] = 'Unable to find images at the provided URL.'
        return result
    logger.info('Picking a random one...')
    image = random.choice(list(images))
    result['image'] = image
    return result