Drone plugin for Douban movie/book/music/game marked data sync automatically.
PLUGIN_ID
: Douban IDDOUBAN_ID
: Same asPLUGIN_ID
PLUGIN_TYPE
: Douban data Type, enum value: movie, book, music, game defaultmovie
DOUBAN_TYPE
: Same asPLUGIN_TYPE
PLUGIN_STATUS
: Douban data status, enum value: mark, doing, done, defaultdone
DOUBAN_STATUS
: Same asPLUGIN_STATUS
PLUGIN_FORMAT
: Douban data store format, enum value:csv, json, notion, neodb defaultcsv
DOUBAN_FORMAT
: Same asPLUGIN_FORMAT
PLUGIN_DIR
: Target where douban data sync to. It's a file path forcsv
andjson
format, and a notion database id fornotion
format.DOUBAN_DIR
: Same asPLUGIN_DIR
PLUGIN_NOTION_TOKEN
: Notion Integration TokenDOUBAN_NOTION_TOKEN
: Same asPLUGIN_NOTION_TOKEN
NOTION_TOKEN
: Same asPLUGIN_NOTION_TOKEN
PLUGIN_NEODB_TOKEN
: NeoDB Access TokenDOUBAN_NEODB_TOKEN
: Same asPLUGIN_NEODB_TOKEN
NEODB_TOKEN
: Same asPLUGIN_NEODB_TOKEN
Copy as .drone.yml
file into your repo. Then set a @houly
schedule cronjob at drone web page.
# .drone.yml
kind: pipeline
type: docker
name: default
clone:
disable: true
steps:
- name: douban
image: lizheming/drone-doumark
settings:
id: lizheming
type: movie
format: csv
dir: ./data/douban
RUN with docker directly:
docker run --rm \
-e PLUGIN_ID=lizheming
-e PLUGIN_TYPE=movie
-e PLUGIN_FORMAT=csv
-e PLUGIN_DIR=./data/douban
lizheming/drone-doumark
- Create a Notion Integration at My Integrations - Notion. And here you can get
NOTION_TOKEN
.- Associated workspace: You should select workspace which you should store.
- Capabilities: Both of
Read
,Update
andInsert
content abilities shoud checked.
- Duplicate database by click Duplicate at the top right postion of <Movie | Book | Music> page.
- Share database to your Integration by inviting it with Share - Invite at the top right postion. And you can get database id, the first random string from url.
- Copy as
.drone.yml
file into your repo. Then set a@houly
schedule cronjob at drone web page.
# .drone.yml
kind: pipeline
type: docker
name: default
clone:
disable: true
steps:
- name: douban
image: lizheming/drone-doumark
settings:
id: lizheming
type: movie
format: notion
notion_token: xxxxxx
dir: xxxxxx
RUN with docker directly:
docker run --rm \
-e PLUGIN_ID=lizheming
-e PLUGIN_TYPE=movie
-e PLUGIN_FORMAT=notion
-e PLUGIN_NOTION_TOKEN=xxxxxx
-e PLUGIN_DIR=xxxxxx
lizheming/drone-doumark
- Create a NeoDB Access Token at NeoDB API Developer Console.
# .drone.yml
kind: pipeline
type: docker
name: default
clone:
disable: true
steps:
- name: douban
image: lizheming/drone-doumark
settings:
id: lizheming
type: movie
format: neodb
neodb_token: xxxxx
RUN with docker directly:
docker run --rm \
-e PLUGIN_ID=lizheming
-e PLUGIN_TYPE=movie
-e PLUGIN_FORMAT=neodb
-e PLUGIN_NEODB_TOKEN=xxxxxx
lizheming/drone-doumark