mirror of
https://github.com/mxrch/GHunt.git
synced 2025-12-22 13:47:07 +00:00
23 lines
480 B
Python
23 lines
480 B
Python
import os
|
|
|
|
import httpx
|
|
import asyncio
|
|
|
|
import sys
|
|
|
|
from ghunt.helpers.gmail import is_email_registered
|
|
|
|
|
|
async def main():
|
|
if not sys.argv[1:]:
|
|
print("Please give an email address.")
|
|
exit(os.EX_IOERR)
|
|
|
|
as_client = httpx.AsyncClient() # Async Client
|
|
|
|
email = sys.argv[1]
|
|
is_registered = await is_email_registered(as_client, email)
|
|
|
|
print("Registered on Google :", is_registered)
|
|
|
|
asyncio.run(main()) # running our async code in a non-async code |