-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathguerrillamail.py
executable file
·46 lines (38 loc) · 1.27 KB
/
guerrillamail.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
from selenium import webdriver
from colorama import Fore, Back, Style
import warnings
import time
import random
import string
import urllib.request
import requests
import csv
import sys
from proxyscrape import create_collector
from time import sleep
import os
clear = lambda: os.system('clear')
clear()
collector = create_collector('my-collector', 'https')
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.support.select import Select
warnings.filterwarnings("ignore", category=DeprecationWarning)
options = Options()
driver = webdriver.Chrome(executable_path='./chromedriver', chrome_options=options)
url = 'https://www.guerrillamail.com/'
driver.get(url)
time.sleep(4)
print(driver.find_element_by_id('inbox-id').text)
email = driver.find_element_by_id('inbox-id').text + '@';
domain_name = Select(driver.find_element_by_id('gm-host-select')).first_selected_option.text
# domain_name = driver.find_element_by_id('gm-host-select').text
email += domain_name
print(domain_name)
print(email)
f = open('./input_emails.txt', 'w')
f.write(email)
# sleep(60)
# driver.find_element_by_partial_link_text('verification').click()
# print(driver.find_element_by_class_name('email-excerpt').text)
# sleep(60)
print(driver.find_element_by_class_name('email-excerpt').text)