A Python script that automates the creation of topics on Discourse, ideal for bulk posting or managing large-scale content updates.
Why Use This Script:
- Efficiency: Automatically create multiple topics without manual intervention.
- Customizability: Supports rich formatting, image embedding, and external URLs.
- API-friendly: Built with the Discourse API, including rate-limiting and retry mechanisms to ensure smooth execution.
When to Use:
- To bulk-create topics for announcements, updates, or other content.
- When importing content from other sources into your Discourse forum.
- To quickly test or check the functionality of your Discourse forum by posting various topics in bulk.
How to Use:
- Clone the repo: Discourse Topic Creation Script
- Set up the
.env
file with your Discourse instance credentials. - Prepare a JSON file (
topic.json
for one,topics.json
for many). - Run the script to automatically create topics!
This tool is great for testing and checking how your Discourse forum handles multiple posts. Feel free to explore, suggest improvements, or ask questions here!
While this script is useful for testing, it’s important to focus on growing your community with real users. Genuine users contribute engagement, feedback, and value to your forum. While bots are helpful for testing, they aren’t a substitute for fostering an active, thriving community!