import re
source = '''
<td>
<span id="itemlist_obj09_ID">gte32</span>obg001</td>
'''
objid = 'obg001'
for s in source.split('\n'):
if re.findall(objid, s):
print(s)
aW1wb3J0IHJlCgpzb3VyY2UgPSAnJycKPHRkPgo8c3BhbiBpZD0iaXRlbWxpc3Rfb2JqMDlfSUQiPmd0ZTMyPC9zcGFuPm9iZzAwMTwvdGQ+CicnJwpvYmppZCA9ICdvYmcwMDEnCgpmb3IgcyBpbiBzb3VyY2Uuc3BsaXQoJ1xuJyk6CiAgICBpZiByZS5maW5kYWxsKG9iamlkLCBzKToKICAgICAgICBwcmludChzKQ==