import requests
def getEseEmail():
url = "http://ese.kr/?pb=6549"
headers = {
"user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36"
}
response = requests.get(url, headers=headers)
if response.status_code == 200:
resp = response.text
return splitRegex(resp, '<input type="search" name="mailbox" value="', '"')
return "err"
def splitRegex(value, a, b):
ss = value.split(a)
if len(ss) > 1:
ss2 = ss[1].split(b)
if len(ss2) > 0:
return ss2[0]
return ""
def getEseMailCode(email):
url = "http://ese.kr/"
headers = {
"user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36",
"content-type": "application/x-www-form-urlencoded"
}
data = {
"mail_id": "",
"mail_mode": "text",
"lang": "en",
"mailbox": email
}
response = requests.post(url, data=data, headers=headers)
if response.status_code == 200:
resp = response.text
return splitRegex(resp, 'no-reply@mail.instagram.com</td><td style="font-weight:bold;"><a href="#">', ' is your Instagram code')
return "err"
def main():
while True:
print("1 - Yeni e-posta al")
print("2 - Gelen kutusunu görüntüle")
print("0 - Çıkış")
choice = input("Seçiminizi yapın: ")
if choice == "1":
email = getEseEmail()
print("Yeni e-posta: ", email)
elif choice == "2":
email = input("E-posta adresini girin: ")
code = getEseMailCode(email)
print("E-posta kodu: ", code)
elif choice == "0":
print("Programdan çıkılıyor...")
break
else:
print("Geçersiz seçim, lütfen tekrar deneyin.")
if __name__ == "__main__":
main() Python ile instagram için Temp mail
0
●148
- 16-07-2023, 18:09:58