tomzx / gdocs-to-markdown
Google documents to markdown exporter
v0.1.0
2016-01-19 03:52 UTC
Requires
- php: >=5.4.0
- google/apiclient: ~1.0
- league/html-to-markdown: ~4.0
Requires (Dev)
- phpunit/phpunit: ~4
This package is auto-updated.
Last update: 2024-11-10 07:32:41 UTC
README
A simple application which lets you export files from a specific folder in Google Drive into markdown.
Getting started
- Create a
google-documents-exporter.p12
at the root of the application which can be obtained by following this guide. - Run
php export.php $random@developer.gserviceaccount.com $folderId
, where$random@developer.gserviceaccount.com
ìs the service account account which can be obtained through theGoogle's Developers Console - Permissions
and$folderId
is the identifier of the folder you want to convert to markdown. All the documents in subfolders will be converted to markdown as well. You can find the final output in theoutput
directory.
License
The code is licensed under the MIT license. See LICENSE.