for line in fbhandle.readlines():
    line = line.rstrip().split('</span>')
for item in line:
    if '>Fans<' in item:
        rind = item.rindex('<span>')
print('-->', item[rind:].split()[2])
Wildcard matching a string in Python regex search