Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
web-automation
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
정용석
web-automation
Commits
729a145b
Commit
729a145b
authored
Jan 15, 2025
by
정용석
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add clipDownload.py
parent
cee3e8bf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
+26
-0
clipDownload.py
+26
-0
No files found.
clipDownload.py
0 → 100644
View file @
729a145b
# "https://chzzk.naver.com/clips/KWydos957E" 웹사이트에서 클립 영상을 다운받는 프로그램입니다.
from
selenium
import
webdriver
from
selenium.webdriver.chrome.service
import
Service
from
selenium.webdriver.common.by
import
By
# By 모듈 임포트
from
webdriver_manager.chrome
import
ChromeDriverManager
import
time
from
selenium.webdriver.support.ui
import
WebDriverWait
from
selenium.webdriver.support
import
expected_conditions
as
EC
# ChromeDriver 경로 설정 (수동으로 경로를 설정하거나 webdriver-manager를 사용)
service
=
Service
(
ChromeDriverManager
()
.
install
())
# webdriver-manager로 자동 설치
driver
=
webdriver
.
Chrome
(
service
=
service
)
driver
.
get
(
"https://chzzk.naver.com/clips/KWydos957E"
)
driver
.
implicitly_wait
(
300
)
# video 태그 확인
url_element
=
driver
.
find_element
(
By
.
TAG_NAME
,
'video'
)
vid_url
=
url_element
.
get_attribute
(
'src'
)
print
(
vid_url
)
print
(
"출력"
)
# 잠시 대기
time
.
sleep
(
30
)
# 브라우저 종료
#driver.quit()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment