dados_recuperados = [{'Title': b'\xfe\xff\x00C\x00O\x00M\x00I\x00S\x00S\x00\xc3\x00O', 'Author': b'Ivanete de Araujo Costa', 'Subject': b'EMD ADI - Emenda Aditiva', 'Creator': b'\xfe\xff\x00M\x00i\x00c\x00r\x00o\x00s\x00o\x00f\x00t\x00\xae\x00 \x00W\x00o\x00r\x00d\x00 \x002\x000\x001\x000', 'CreationDate': b"D:20170314114321-07'00'", 'ModDate': b"D:20170314114321-07'00'", 'Producer': b'\xfe\xff\x00M\x00i\x00c\x00r\x00o\x00s\x00o\x00f\x00t\x00\xae\x00 \x00W\x00o\x00r\x00d\x00 \x002\x000\x001\x000'}]
dados_recuperados = dados_recuperados[0]
def decode_str(string):
return string.decode("utf8")
author = decode_str(dados_recuperados.get("Author"))
subject = decode_str(dados_recuperados.get("Subject"))
creation_date = decode_str(dados_recuperados.get("CreationDate"))
mod_date = decode_str(dados_recuperados.get("ModDate"))
print(author)
print(subject)
print(creation_date)
print(mod_date)
ZGFkb3NfcmVjdXBlcmFkb3MgPSBbeydUaXRsZSc6IGInXHhmZVx4ZmZceDAwQ1x4MDBPXHgwME1ceDAwSVx4MDBTXHgwMFNceDAwXHhjM1x4MDBPJywgJ0F1dGhvcic6IGInSXZhbmV0ZSBkZSBBcmF1am8gQ29zdGEnLCAnU3ViamVjdCc6IGInRU1EIEFESSAtIEVtZW5kYSBBZGl0aXZhJywgJ0NyZWF0b3InOiBiJ1x4ZmVceGZmXHgwME1ceDAwaVx4MDBjXHgwMHJceDAwb1x4MDBzXHgwMG9ceDAwZlx4MDB0XHgwMFx4YWVceDAwIFx4MDBXXHgwMG9ceDAwclx4MDBkXHgwMCBceDAwMlx4MDAwXHgwMDFceDAwMCcsICdDcmVhdGlvbkRhdGUnOiBiIkQ6MjAxNzAzMTQxMTQzMjEtMDcnMDAnIiwgJ01vZERhdGUnOiBiIkQ6MjAxNzAzMTQxMTQzMjEtMDcnMDAnIiwgJ1Byb2R1Y2VyJzogYidceGZlXHhmZl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