with open('/home/x79/sisvietnamvn_01/BV_DHYD_HCM/Đội ngũ bác sĩ UMC.html', 'r', encoding='utf-8') as f: text = f.read() if "chuyên khoa" in text: print("Found 'chuyên khoa'") else: print("Not found 'chuyên khoa'")