-
Notifications
You must be signed in to change notification settings - Fork 0
/
everyone.py
31 lines (22 loc) · 945 Bytes
/
everyone.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
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.by import By
import time
driver = webdriver.Firefox()
driver.get("https://www.pesuacademy.com/Academy/")
open('kids.txt', 'w').close()
for i in range(1,158):
knowClsSection = driver.find_element(By.ID, 'knowClsSection').click()
time.sleep(0.2)
knowClsSectionModalLoginId = driver.find_element(By.ID, 'knowClsSectionModalLoginId').send_keys(f"PES2UG22EC{str(i).zfill(3)}")
knowClsSectionModalSearch = driver.find_element(By.ID, 'knowClsSectionModalSearch').click()
time.sleep(0.2)
knowClsSectionModalTableDate = driver.find_elements(By.TAG_NAME, 'td')
for i in knowClsSectionModalTableDate:
f = open("kids.txt", "a+")
f.write(i.text+' ')
f.write('\n')
driver.find_element(By.TAG_NAME,'body').send_keys(Keys.ESCAPE)
time.sleep(0.5)
# time.sleep(200)
driver.close()