Skip to content

Latest commit

 

History

History
28 lines (18 loc) · 854 Bytes

README.md

File metadata and controls

28 lines (18 loc) · 854 Bytes

hackmd-archive-worker

A worker that helps us archive discussion is recorded in HackMD periodically. The detailed working flow is as follows:

  1. (Prerequisite) Define the storing directories mapping in directory_hierarchy.yaml for the documents according to the tags.

  2. Download all the documents from HackMD through HackMD API.

  3. For each downloaded document, parse its tags and move it to the current directory following the definition in directory_hierarchy.yaml.

  4. After arranging the documents, push the documents to the new branch for archiving.

Installation and Usage

Install Dependencies

For running the app, you need to install the following dependencies by following command:

pipenv install -d

Usage

  • Crawling all the notes
pipenv run sync_all_notes