Code Monkey home page Code Monkey logo

germail's Introduction

Germail

صانع اميلات مؤقتة تستخدم خدمة من موقع mail.tm و تم عمل لها برنمج بسيط من خلال بايثون طريقة التثبيت هي

Install germail

امر التثبيت هو

pip3 install germail -U

Import Germail

لما تنتهي من التثبيت يمكنك استدعاء المكتبة بكتابة كود

import germail

Create mail

سيظهر لك الاميل و كلمة السر بعد كتابة الكود هذا :

user=germail.Germail()

Show messages

ستظهر لك جميع الرسائل بستخدام الكود التالي :

messages=user.get_messages()

Show last message

اظهار فقط اخر رسالة

last=user.get_last_message()

Show message by ID of message

اظهار الرسالة عن طريق id الخاص فيها (ملاحظة يمكنك العثور على id من خلال اظهار جميع الرسائل ستظهر معها id )

msg=user.read_message("515454465414494ds444554")

Login into other mail

يمكنك تسجيل الدخول الى اميل اخر تم صنعه من قبل من خلال الكود :

user.login("[email protected]","pasword")

Delete mail or Renew email or Create other new Mail

يمكنك حذف الاميل او تجديد الاميل او صنع اميل جديد من خلال هذي الاكواد التالية

user.delete_account()

or

user.renew_account()

or

user.new_account()

Exemple Code for how to use

هذا مثال للكود لكن لا تنسى ان ترسل رسالة حقيقية لهذا الايميل من اميل اخر

import germail
from time import sleep
user=germail.Germail()


input("wait message press enter")
sleep(5)
try:
    #get last message
    message= user.get_last_message()
    print("text of message : ", message.text)
    print("id of message : ",message.id_)
    print("html of message : ",message.html)

except:
    print("\n\nnot have a message")

#get info email and pass
email=user.get_mail()
password=user.get_password()
user=None

# parametre create=False = "not create new mail"
user2=germail.Germail(create=False)
user2.login(email,password)
print("\n\n\n#######################################################\n",
            "Print all message",
            "\n################################################\n\n\n")
print(user2.get_messages())

user2.renew_account()
user2.delete_account()

germail's People

Contributors

kira-xc avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.