Skip to content

🔏 Changes all illustrations and novels publicly bookmarked on pixiv to private bookmarks.

License

Notifications You must be signed in to change notification settings

tomacheese/pixiv-public-to-private

Repository files navigation

pixiv-public-to-private

Changes all illustrations and novels publicly bookmarked on pixiv to private bookmarks.

This application is intended to change the visibility of bookmarks on an ongoing schedule.
If you expect to make temporary batch changes, you can use the following script created in the browser devtool.

Requirements

Installation

Works in Docker Compose environment.

Docker Compose

If you want to use Docker Compose, write the following in compose.yaml:

services:
  app:
    image: ghcr.io/tomacheese/pixiv-public-to-private
    volumes:
      - type: bind
        source: ./data
        target: /data/
    init: true
    restart: always

You can then refer to the configuration section to create a configuration file and then launch it with docker compose up -d.

Configuration

Please save the obtained refresh token in data/token.json.

{
  "refresh_token": "....."
}

Environment variables

The following environment variables are available:

  • PIXIV_TOKEN_PATH: pixiv token file path (default value: data/token.json)
  • RESPONSE_DB_HOSTNAME: Whether to save the response to the DB for storage or not
    • RESPONSE_DB_HOSTNAME
    • RESPONSE_DB_PORT
    • RESPONSE_DB_USERNAME
    • RESPONSE_DB_PASSWORD
    • RESPONSE_DB_DATABASE
  • DELETE_BOOKMARK_FOR_DELETED_ITEMS: If you have bookmarked a deleted item, whether to unbookmark it or not

License

The license for this project is MIT License.