Manage instance blocks on mastodon
Go to file
Izalia Mae 970807b075 heck
2019-11-29 02:58:20 -05:00
.gitignore Initial commit 2019-11-29 02:31:45 -05:00
block.py add script 2019-11-29 02:51:08 -05:00
LICENSE add script 2019-11-29 02:51:08 -05:00
README.md heck 2019-11-29 02:58:20 -05:00
requirements.txt add script 2019-11-29 02:51:08 -05:00

mstdn-block

Manage instance blocks on mastodon

Note: currently only import and export commands are supported. Also only tested with Glitch-Soc 3.0.1.

PLEASE BACKUP YOUR DATABASE BEFORE USING TOOL

Installation

pip install -r requirements.txt

cp block.py path/to/mastodon/root

Usage

If the path to a csv file is not specified, 'blocks.csv' in the current directory will be used.

Import blocklist in csv format

./block.py import [path/to/csv]

Export blocklist in csv format

./block.py export [path/to/csv]