Skip to main content

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

Metadata

Release files for xitroo-api 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for xitroo-api 0.0.1
File Size Uploaded Provenance Actions
xitroo-api-0.0.1.tar.gz 4.3 kB Without provenance Details for xitroo-api-0.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for xitroo-api 0.0.1
File Interpreter ABI Platform Actions
xitroo_api-0.0.1-py3-none-any.whl Python 3 none any Details for xitroo_api-0.0.1-py3-none-any.whl

Total release size: 8.8 kB

Release files / xitroo-api-0.0.1.tar.gz

Download URL xitroo-api-0.0.1.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
03cfa2367caa9d360d6c39f8f0db593a6aa6b79c39c989c146f5892603760033
BLAKE2b-256 checksum
How to use checksums
2ac98fb86873d4f3d94dce515e00661e64f2fdaaa2bd25c35bf2009ea75eb432
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.10.4

Release files / xitroo_api-0.0.1-py3-none-any.whl

Download URL xitroo_api-0.0.1-py3-none-any.whl
Size 4.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f2dc0f713aff19396e30f0c7ab2a0aa520a6ef82e0b458bdb30504b169d30ec4
BLAKE2b-256 checksum
How to use checksums
5dacdd55a9e3234ec2749ecc57caaef65123ed04c076329752b6f94d39863030
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.10.4

Security for xitroo-api 0.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page