def gen_output(json_dct, title, location, company, date, thread): 
    """Format the output dictionary that will end up going into Mongo. 

    Args: 
    ----
        json_dct: dict
        title: Selenium WebElement 
        location: Selenium WebElement 
        company: Selenium WebElement
        date: Selenium WebElement
        thread: RequestThreadInfo object

    Return:
    ------
        json_dct: dct
    """

    thread.join()

    json_dct['job_title'] = title.text
    json_dct['location'] = location.text
    json_dct['company'] = company.text
    json_dct['date'] = date.text
    json_dct['posting_txt'] = thread.posting_txt

    return json_dct