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 11:44:00 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
6c0173b5396a94212946dfa5ab9ab0fea448f60c
6c0173b5
1 parent
3e87d6bd
selecting movie and megabox location
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
6 deletions
Megabox_crawling/megaboxCrawling.py
Megabox_crawling/megaboxCrawling.py
View file @
6c0173b
...
...
@@ -18,12 +18,18 @@ 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'])
...
...
Please
register
or
login
to post a comment