Untitled

mail@pastecode.io avatar
unknown
python
a year ago
801 B
3
Indexable
Never
from requests import *
from random import *
from time import sleep
from bs4 import BeautifulSoup

def f(username):
	msg_id = -1
	domain = "bheps.com"
	while 1:
		try:
			sleep(1)
			msg_id = get(f'https://www.1secmail.com/api/v1/?action=getMessages&login={username}&domain={domain}').json()[0]["id"]
			print(100)
			break
		except:
			continue
	msg = get(f'https://www.1secmail.com/api/v1/?action=readMessage&login={username}&domain={domain}&id={msg_id}').json()["body"]

	soup = BeautifulSoup(msg, "html.parser")
	code = soup.find('div', {'class': 'otpCode'}).text
	return code
print(f("csansci123"))
#kunyare ung username is csansci123
# ung email dapat csansci123@bheps.com
#laging bheps.com ung domain dapat
# tas pag rinegister na don
# print("csansci123")
# tas magprprint ung verification code