GreXXL it is possible (you could fetch all unapproved posts every X hours/minutes, and approve ones that meet your criteria), but I think that an extension might be more useful in this scenario. pyFlarum has to listen to posts by making periodic requests to the API, which can be resource consuming (both to serve API responses and the script itself). I appreciate your recommendation though