Arkadaşlr bir siteden data çektik ama mailler cloudflare email protection ile encode edilmiş. python ile yazılmış decode kodu bulduk ama bayağı mail var elimizde txt dosyasında altalta sıralanmış şekilde. bu kodu nasıl txt den satır satır okuyup, çıktıyı komple yin txt olarak vermesini sağlayabiliriz. decode kodu #! /usr/bin/env python # - - coding: utf-8 - - # vim:fenc=utf-8 # # Copyright © 2016 xl7dev <xl7dev@xl7dev. local> # # Distributed under terms of the MIT license. """ """ import re def deCFEmail : fp = '314554424571455442451f525e5c' r = int(fp ,16) email = ''. join([chr(int(fp , 16) ^ r) for i in range(2, len , 2)]) print email if name " main ": deCFEmail normalde fp deki değeri yan bunu "314554424571455442451f525e5c" txt dosyasından sırayla okumasını istiyorum. txt dosyasıda bu şekilde 016062626e746f7572416269647269687364716473676e736c606f62642f626e2f746a 016062626e746f7572416c6e6f607362692c6470746472757368606f2f626e2f746a 016062626e746f757241707460786d6465646f75606d2f626e2f746a 016062626e746f7572417569646c6e63686d68757872696e71746a2f626e2f746a 016063646d6d416063686f66766e7375692f626e6c 016063746f65606f62646074756e416e74756d6e6e6a2f626e6c 016065606c2f6b607364666041626e2c6e716473607568776463606f6a2f626e2f746a 0160656564736d6478736e606562607372606d647241666c60686d2f626e6c 0160656c686f416c6e6f6478726268646f62642f626e2f746a 0160656c686f417569642c7169622f626e6c 0160656c686f41756d6276686d6d72647377686264722f626e2f746a 0160656c686f4177767160737572686f7564736f6075686e6f606d2f626e6c 0160657368606f2f62696e736d64784179626e6f6f64627575736065686f662f626e6c 016067676e736560636d646f6075686e6f606d6260737241666c60686d2f626e6c 0160676e746f7560686f4165746f656464726462747368756864722f626e6c 0160686f72766e7375692f65646f75606d7173606275686264416375626e6f6f6462752f626e6c 01606c6062656e7466606d6d4160626e736e6260716875606d2f626e6c 01606c606f65604169686669727565646f75606d626073642f626e2f746a 01606d64792f69606c686d756e6f4169606c686d756e6f736e63647375726e6f2f626e2f746a gidiyor. nasıl yapar, nasıl ederiz

mails. txt den okuyor, clear. txt'ye yaziyor. with open as f: mails = with open as f: for m in mails: r = int(m ,16) print >> f, ''. join([chr(int(m , 16) ^ r) for i in range(2, len , 2)]) teşekkür ederim, çalıştı

mails. txt den okuyor, clear. txt'ye yaziyor. with open as f: mails = with open as f: for m in mails: r = int(m ,16) print >> f, ''. join([chr(int(m , 16) ^ r) for i in range(2, len , 2)]) Copyright 2012