So I grabbed an email body from Gmail Imap server. Now That File contain format like b"some line /d/n some line /d/n". Mine aim is to get that some line by anyway. but I am unable to do that.
I tried Split() method but that does not works.
def main():
yes = open("file.txt", "r")
byte_object= yes.read()
print(byte_object.decode('utf8')) #Nothing changes
main()
I expect output as Lines between those tags