I wanted to make a beep so that I could see that the calculation was finished, but it was difficult on a Mac. It was troublesome to get the audio file, so I decided to play youtube. With Python, it was pretty easy with standard modules. Occasionally scratches when the commercial is played. .. ..
mac OS Catalina 10.15.6 Python 3.5.5
play_youtube.py
import webbrowser
webbrowser.open("URL of the video you want to play")
It's pretty easy, it's done in two lines. By the way, I'm using this
Recommended Posts