Gather content from GatherContent.
Originally written from @kyleoliveiro, modified by @aaronkow to fetch V2 API from GatherContent.
# For npm
$ npm i -g @midnight-theory/gatherer
# For yarn
$ yarn global add @midnight-theory/gatherer
- Create config with naming
gatherer.json
with reference to your GatherContentusername
andpassword
with format:
{
"username": "<your-email>",
"password": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"project": "888888",
"pages": "./dest"
}
- Then run
gatherer
. That's all.
Key | Explaination |
---|---|
username |
Specify your username here, which is the email you registered with GatherContent |
password |
Password is your API key which you can generate via API tab under "Personal settings" |
project |
This is the project ID which you can obtain from via project link |
pages |
Specify where the data should be stored |