These scripts export the video titles in a YouTube playlist to a text file. One uses the official Youtube API. The other uses the Pytube package.