Toggle navigation
Toggle navigation
This project
Loading...
Sign in
임승현
/
Multiplex_Ticketing_Platform
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
이혜인
2022-05-19 04:47:03 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
3e87d6bdaeac1d529b4e9a19e32e1f54f11c9416
3e87d6bd
1 parent
2b3e19ce
extracting inline frame
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
0 deletions
Megabox_crawling/megaboxCrawling.py
Megabox_crawling/megaboxCrawling.py
0 → 100644
View file @
3e87d6b
import
requests
from
bs4
import
BeautifulSoup
from
selenium
import
webdriver
from
webdriver_manager.chrome
import
ChromeDriverManager
from
selenium.webdriver.common.keys
import
Keys
# driver = webdriver.Chrome()
options
=
webdriver
.
ChromeOptions
()
options
.
add_experimental_option
(
"excludeSwitches"
,
[
"enable-logging"
])
driver
=
webdriver
.
Chrome
(
options
=
options
)
# driver = webdriver.Chrome(ChromeDriverManager().install(),options=options)
url
=
"https://megabox.co.kr/booking"
driver
.
maximize_window
()
driver
.
implicitly_wait
(
3
)
driver
.
get
(
url
)
iframes
=
driver
.
find_elements_by_css_selector
(
'iframe'
)
for
iframe
in
iframes
:
print
(
iframe
)
# for i in btn:
# print(i['brch-nm'])
#driver.find_element_by_css_selector('div').send_keys(Keys.ENTER)
# soup = BeautifulSoup(driver.page_source, 'html.parser')
# theater = soup.select('li')
# for i in theater:
# print(i.text)
# driver.close()
# response = requests.post(url)
# soup = BeautifulSoup(response.text, "html.parser")
# movie_location = {}
# for(brch_nm) in soup.select('#frameBokdMBooking'):
# print(brch_nm)
Please
register
or
login
to post a comment