[第23期]Use pytube and PySide to download YouTube audio(mp3)/使用pytube與PySide下載YouTube聲音檔(mp3)
This vedio shows how to use pytube and PySide to download YouTube audio (mp3).
The content includes:
PySide Introduction
Filter Audio Stream
Download and rename Youtube mp3 file
本視頻說明如何使用pytube與PyQt下載YouTube影片。
內容包含:
PySide簡介
篩選聲音資料流
下載和重新命名YouTube MP3檔
Pyside template
1 | import sys |
access methods of the base class
super(MainWindow, self).__init__(*args, **kwargs)
Load the UI Page by PySide6
loader = QUiLoader()
file = QFile(ui_file_name)
file.open(QIODevice.ReadOnly)
self.ui = loader.load(file)
file.close()
self.ui.setWindowTitle(“ui title”)
self.ui.show()
1 | def main(): |
sys.exit(app.exec())
if __name__ == ‘__main__‘:
main()
本部落格所有文章除特別聲明外,均採用CC BY-NC-SA 4.0 授權協議。轉載請註明來源 X Workshop|量測自動化 × 嵌入式 × AI 開發實戰!