def findTitle(bs40):
    """
    输入解析后的bs4对象,返回jobUrl的title、公司、薪水信息的元组,若解析出错，则返回0
    params:
        data:使用bf4 解析好的html文档
    """
    #找到title和Salary
    title = bs40.find('h1')
    if title is None:
        return 0
    else:
        salary = title.next_sibling
        salary = salary.text
        title = title.text
    #找到company
    company = bs40.find('div', class_='com_msg')
    if company == None:
        return 0
    else:
        comName = company.get_text()
        comName = comName[:-1]
        titleAndSalary = (title, salary, comName)
    return titleAndSalary