{"id":16548746,"url":"https://github.com/lizheming/drone-doumark","last_synced_at":"2025-03-21T10:31:55.186Z","repository":{"id":41101757,"uuid":"456716723","full_name":"lizheming/drone-doumark","owner":"lizheming","description":"Douban movie/book/music marked data sync plugin | 豆瓣观影/阅读/音乐记录同步","archived":false,"fork":false,"pushed_at":"2023-12-31T11:54:06.000Z","size":158,"stargazers_count":36,"open_issues_count":1,"forks_count":11,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-18T00:11:17.629Z","etag":null,"topics":["douban","douban-book","douban-movie","douban-music","drone","drone-plugin","notion","notion-api","notion-database"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lizheming.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-02-07T23:43:43.000Z","updated_at":"2025-02-25T05:24:05.000Z","dependencies_parsed_at":"2023-12-31T12:39:24.691Z","dependency_job_id":null,"html_url":"https://github.com/lizheming/drone-doumark","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lizheming%2Fdrone-doumark","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lizheming%2Fdrone-doumark/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lizheming%2Fdrone-doumark/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lizheming%2Fdrone-doumark/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lizheming","download_url":"https://codeload.github.com/lizheming/drone-doumark/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244777940,"owners_count":20508818,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["douban","douban-book","douban-movie","douban-music","drone","drone-plugin","notion","notion-api","notion-database"],"created_at":"2024-10-11T19:26:56.405Z","updated_at":"2025-03-21T10:31:54.823Z","avatar_url":"https://github.com/lizheming.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![](assets/douban.png)\n## drone-doumark\n\n[![Build Status](https://github.com/lizheming/drone-doumark/actions/workflows/release.yml/badge.svg)](https://github.com/lizheming/drone-doumark/actions/workflows/release.yml)\n\u003c!-- [![Build Status](https://cloud.drone.io/api/badges/lizheming/drone-doumark/status.svg)](https://cloud.drone.io/lizheming/drone-doumark) --\u003e\n\nDrone plugin for Douban movie/book/music/game marked data sync automatically.\n## Configuration\n\n- `PLUGIN_ID`: Douban ID\n- `DOUBAN_ID`: Same as `PLUGIN_ID`\n- `PLUGIN_TYPE`: Douban data Type, enum value: movie, book, music, game default `movie`\n- `DOUBAN_TYPE`: Same as `PLUGIN_TYPE`\n- `PLUGIN_STATUS`: Douban data status, enum value: mark, doing, done, default `done`\n- `DOUBAN_STATUS`: Same as `PLUGIN_STATUS`\n- `PLUGIN_FORMAT`: Douban data store format, enum value：csv, json, notion, neodb default `csv`\n- `DOUBAN_FORMAT`: Same as `PLUGIN_FORMAT`\n- `PLUGIN_DIR`: Target where douban data sync to. It's a file path for `csv` and `json` format, and a notion database id for `notion` format. \n- `DOUBAN_DIR`: Same as `PLUGIN_DIR`\n- `PLUGIN_NOTION_TOKEN`: Notion Integration Token\n- `DOUBAN_NOTION_TOKEN`: Same as `PLUGIN_NOTION_TOKEN`\n- `NOTION_TOKEN`: Same as `PLUGIN_NOTION_TOKEN`\n- `PLUGIN_NEODB_TOKEN`: NeoDB Access Token\n- `DOUBAN_NEODB_TOKEN`: Same as `PLUGIN_NEODB_TOKEN`\n- `NEODB_TOKEN`: Same as `PLUGIN_NEODB_TOKEN`\n## How to use\n\n### Sync to CSV file\n\nCopy as `.drone.yml` file into your repo. Then set a `@houly` schedule cronjob at drone web page.\n\n```yml\n# .drone.yml\nkind: pipeline\ntype: docker\nname: default\n\nclone:\n  disable: true\n\nsteps:\n- name: douban\n  image: lizheming/drone-doumark\n  settings:\n    id: lizheming\n    type: movie\n    format: csv\n    dir: ./data/douban\n```\n\nRUN with docker directly:\n```\ndocker run --rm \\\n  -e PLUGIN_ID=lizheming\n  -e PLUGIN_TYPE=movie\n  -e PLUGIN_FORMAT=csv\n  -e PLUGIN_DIR=./data/douban\n  lizheming/drone-doumark\n```\n\n### Sync to Notion\n\n1. Create a Notion Integration at [My Integrations - Notion](https://www.notion.so/my-integrations). And here you can get `NOTION_TOKEN`.\n    - Associated workspace: You should select workspace which you should store.\n    - Capabilities: Both of `Read`, `Update` and `Insert` content abilities shoud checked.\n2. Duplicate database by click \u003ckbd\u003eDuplicate\u003c/kbd\u003e at the top right postion of \u003c[Movie](https://lizheming.notion.site/d8a363df3ca84ca89ef52208ad874e3b) | [Book](https://lizheming.notion.site/488c17fd89fb424591f68f7cfb029020) | [Music](https://lizheming.notion.site/d80ca60213c54ab99c4376caec0be9d7)\u003e page.\n3. Share database to your Integration by inviting it with \u003ckbd\u003eShare\u003c/kbd\u003e - \u003ckbd\u003eInvite\u003c/kbd\u003e at the top right postion. And you can get database id, the first random string from url.\n4. Copy as `.drone.yml` file into your repo. Then set a `@houly` schedule cronjob at drone web page.\n\n```yml\n# .drone.yml\nkind: pipeline\ntype: docker\nname: default\n\nclone:\n  disable: true\n\nsteps:\n- name: douban\n  image: lizheming/drone-doumark\n  settings:\n    id: lizheming\n    type: movie\n    format: notion\n    notion_token: xxxxxx\n    dir: xxxxxx\n```\n\nRUN with docker directly:\n\n```\ndocker run --rm \\\n  -e PLUGIN_ID=lizheming\n  -e PLUGIN_TYPE=movie\n  -e PLUGIN_FORMAT=notion\n  -e PLUGIN_NOTION_TOKEN=xxxxxx\n  -e PLUGIN_DIR=xxxxxx\n  lizheming/drone-doumark\n```\n\n### Sync to NeoDB\n\n1. Create a NeoDB Access Token at [NeoDB API Developer Console](https://neodb.social/developer/).\n\n\n```yml\n# .drone.yml\nkind: pipeline\ntype: docker\nname: default\n\nclone:\n  disable: true\n\nsteps:\n- name: douban\n  image: lizheming/drone-doumark\n  settings:\n    id: lizheming\n    type: movie\n    format: neodb\n    neodb_token: xxxxx\n```\n\nRUN with docker directly:\n\n```\ndocker run --rm \\\n  -e PLUGIN_ID=lizheming\n  -e PLUGIN_TYPE=movie\n  -e PLUGIN_FORMAT=neodb\n  -e PLUGIN_NEODB_TOKEN=xxxxxx\n  lizheming/drone-doumark\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flizheming%2Fdrone-doumark","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flizheming%2Fdrone-doumark","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flizheming%2Fdrone-doumark/lists"}