Files
  • main.py
main.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
from bs4 import BeautifulSoup as soup
from urllib.request import urlopen as uReq
from selenium import webdriver
import re

# The URL that I want to webscrape
new_Users = "https://www.mountainproject.com/forum"

# Telling the program to download and open the page
forum = uReq(new_Users)

page_html = forum.read()

# Makes file not crash computer
forum.close()

# Tells program to parse in html
page_soup = soup(page_html, "html.parser")

names = page_soup.find_all("span", {"class" : "text-warm"})
name = names[0]

browser = webdriver.Chrome('C:\\Users\\Mr. Boss\\Downloads\\chromedriver.exe')
browser.get("https://www.verifyemailaddress.org/#result")
enter_Email = browser.find_element_by_tag_name("email")

email_Companies = ["@gmail.com", "@yahoo.com", "@outlook.com", "@aol.com", "@aim.com", "@yandex.com", "att.net"]

def add_To_CSV():
  

def check_Email():
    if " " in names[x]:
        names[x] = re.sub("[ ]", "", names[x])
    enter_Email.clear()
    enter_Email.send_Keys(names[x])

for x in range(len(names)):
    print(names[x].text)
    check_Email()