Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/iannuttall/google-docs-to-markdown

This is a Python script I use to quickly convert Google Docs articles to Markdown with frontmatter
https://github.com/iannuttall/google-docs-to-markdown

Last synced: about 2 months ago
JSON representation

This is a Python script I use to quickly convert Google Docs articles to Markdown with frontmatter

Awesome Lists containing this project

README

        

1. Install the dependencies: `pipenv install`
1. Make your Google Doc file accessible to anyone with the URL
1. Copy the share link from Docs to a new line on urls.txt
1. Make sure it ends with /edit and not /edit#
1. Run: `pipenv run python convert.py`

If you're not using pipenv, use requirements.txt instead.

You can also use one of the options below:

- `pipenv run python convert.py -r`: This will remove all existing files in the docx, images, and markdown folders.
- `pipenv run python convert.py -u example.txt`: Use a different filename for the list of urls instead of the default urls.txt.

This script is specific to my needs, but if you wanted to extend it to push content to WordPress, for example, you could probably do that pretty easily.