이혜인

selecting movie and megabox location

......@@ -18,13 +18,19 @@ driver.implicitly_wait(3)
driver.get(url)
iframes = driver.find_elements_by_css_selector('iframe')
for iframe in iframes:
print(iframe)
driver.switch_to.frame('frameBokdMBooking')
driver.find_element_by_id('btn')
r = driver.page_source
soup = BeautifulSoup(r, "html.parser")
attr = soup.select("#mCSB_4_container>ul>li>button")
for brch in attr:
print(brch['brch-nm'], brch['brch-no'])
attr1 = soup.select("#mCSB_1_container>ul>li>button")
for movie in attr1:
print(movie['movie-nm'], movie['movie-no'])
# for i in btn:
# print(i['brch-nm'])
#driver.find_element_by_css_selector('div').send_keys(Keys.ENTER)
......