Skip to content
This repository was archived by the owner on Mar 20, 2023. It is now read-only.

Latest commit

 

History

History
65 lines (43 loc) · 1.55 KB

README.md

File metadata and controls

65 lines (43 loc) · 1.55 KB

dullahan

Build Status npm

dullahan supports streaming or downloading encoded videos on Google Drive with puppeteer.

Installation

$ npm install -g dullahan

Usage

$ 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

License

Apache 2.0