Skip to content
This repository was archived by the owner on May 25, 2022. It is now read-only.

Create python.youtube #442

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions python.youtube
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
from pytube import YouTube
link = "https://youtu.be/EBfe40aZY54"
video = YouTube(link)
def finish():
print("download finish")
video.streams.get_highest_resolution().download(output_path="C:\Users\ACER\Document\idio")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dont put any hard coded values

video.register_on_complete_callback(finish())