async def get_story_data(session, story_id, story_rank):
    """
    Gets the given story data - title and url
    """
    url = 'https://hacker-news.firebaseio.com/v0/item/{}.json'.format(story_id)

    async with session.get(url) as response:
        result_data = await response.json()

        story_url = ""
        if "url" in result_data:  # The url key might not be in the results data
            story_url = result_data['url']

        return story_rank, result_data['title'], story_url