dullahan
supports streaming or downloading encoded videos on Google Drive with puppeteer.
$ npm install -g dullahan
$ dullahan help
Get cookie and stream map for streaming
Output cookie and stream map to stdout as JSON format.
$ dullahan session -e EMAIL -p PASSWORD -f FILE_ID
{"cookie":{"name":"DRIVE_STREAM","value":"xxx","domain":".drive.google.com","hostOnly":false,"path":"/","secure":true,"httpOnly":true,"session":true},"
stream_map":{"18":"https://..."}
Download the encoded video
$ dullahan download -e EMAIL -p PASSWORD -f FILE_ID -o OUTFILE
Attach to an existing browser
Start Google Chrome with the remote-debugging-port option.
$ google-chrome --remote-debugging-port=9222 --user-data-dir=/tmp
Start dullahan with the remote-debugging-port option, too.
$ dullahan download -e EMAIL -p PASSWORD -f FILE_ID -o OUTFILE --remote-debugging-port=9222
Skip sign-in
You can skip sign-in to Google account when you attach to an existing browser that has the session.
$ dullahan download -f FILE_ID -o OUTFILE --remote-debugging-port=9222 --skip-signin
Apache 2.0