def get_url(post):
    """
    Gets the url of the actual JPG file from the post object.
    """
    url = post['data']['url']
    if url.endswith == 'jpg':
        return url
    elif url.endswith == '/':
        return url.strip('/') + '.jpg'
    else:
        return url + '.jpg'