pyFlarum Bulk Discussions
A pyFlarum script that allows you to automatically create discussions from markdown text files in a directory.
Usage
https://github.com/cwkevo/pyflarum-bulk-discussions
Download/clone the repository. cd
into repository root.
Put your text files you'd wish to create as discussions in /discussions
.
The file name (without extension) will be used as the title of the discussion. The file contents will be used as the body of the discussion. Markdown format is supported.
python -m bulk_discussions -f <your forum URL> -u <your account username> -p <account password>
Example:
python -m bulk_discussions -f https://flarum.example.com -u admin -p cooladmin123
Disclaimer
By absolutely no means I support any malicious use of this script in order to create unwanted content/spam.
I made this script as an option to solve a problem described in this discussion, and I am not responsible for any damage caused by this script. You are solely responsible for your own actions.
If you feel that you are a victim of the inproper use of this tool, you can block the pyflarum
user agent at the server where your Flarum instance is hosted on, which will effectively block all traffic made by this script.