Skip to main content

Xitroo Temporarily Email Api

Project description

Unofficial Xitroo Api

An API for xitroo.com, Xitroo is a temporarily email service website that offers unlimited emails for free, Unfortunately they don't have an API so i made my own Unofficial Xitroo Api and decided to share it with you guys, It can be used for websites that require to email verify to sign up and much more.

Installing

pip install xitroo-api

Usage

>>> from xitroo import Api

Api.GenerateEmail(length=18, domain="com")

Api.FetchEmail(xitroo_email="email here", subject="subject here")

-----------------------------------------------------------------

GenerateEmail arguments:

1 - length: is the amount of characters in the random string, it can be set to any number default is 18 characters. 
2 - domain: xitroo has multiple domains such as [.com, .fr, .net, .org] you can chosse anyone you want or you can set it to "random".

FetchEmail arguments:

1 - xitroo_email: Its the email generated from [Api.GenerateEmail(length=21, domain="random")]
2 - Subject: its from what site you used the email on, Its the subject of the email received.
3 - Timeout: How long to wait for the email to be received, The default is 30 secends it can be set to any amount of time 

Example One

>>> from xitroo import Api

email = Api.GenerateEmail(length=21, domain="random")
print(email)
>>> thisisanexample@xitroo.com

#use this email on whatever site you want, for this example im using it on instagram

#you need to grab the subject that instagram uses in there emails and place it in the function below,
It dosent have to be the full subject just a part of it 

Body = Api.FetchEmail(xitroo_email=email, subject="your instagram code is")
print(Body)
>>> your instagram code is 762354

# you can use regex to grab the code only from the Body, For example

code = re.findall('your instagram code is (.*?)', str(Body))[0]
print(code)
>>> 762354

Example Two

On this Example we are getting a link to verify

>>> from xitroo import Api

email = Api.GenerateEmail(length=18, domain="fr")
print(email)
>>> thisisanexample@xitroo.fr

#use this email on whatever site you want

#you need to grab the subject of the email that the website sent and place it in the function below,
It dosent have to be the full subject just a part of it 

Body = Api.FetchEmail(xitroo_email=email, subject="verify your account", timeout=15)
print(Body)
>>> Thanks for registering please click the link below to comlpte registration
    https://example.com/verify-user-account 

# you can use regex to grab the link only from the Body, For example

link = re.findall('registration\n(.*?)', str(Body))[0]
print(link)
>>> https://example.com/verify-user-account

to verify the account with a link you got two options either you use selenium and open the link with chromedriver
or send a request to that link

#Contact me on discord: Flex#8629

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

xitroo-api-0.0.1.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

xitroo_api-0.0.1-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file xitroo-api-0.0.1.tar.gz.

File metadata

  • Download URL: xitroo-api-0.0.1.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.4

File hashes

Hashes for xitroo-api-0.0.1.tar.gz
Algorithm Hash digest
SHA256 03cfa2367caa9d360d6c39f8f0db593a6aa6b79c39c989c146f5892603760033
MD5 226c0ce6b589ada0777c35389295e885
BLAKE2b-256 2ac98fb86873d4f3d94dce515e00661e64f2fdaaa2bd25c35bf2009ea75eb432

See more details on using hashes here.

File details

Details for the file xitroo_api-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: xitroo_api-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.4

File hashes

Hashes for xitroo_api-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f2dc0f713aff19396e30f0c7ab2a0aa520a6ef82e0b458bdb30504b169d30ec4
MD5 88d14c7041bb1594d6f7118be1409f67
BLAKE2b-256 5dacdd55a9e3234ec2749ecc57caaef65123ed04c076329752b6f94d39863030

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page