To get started with locust, install it using pip or whatever

pip install locustio

I'm testing this on a localy started ghost blog, docker must be installed

docker run -d --name ghost-victim -p 80:2368 ghost

Open http://localhost and setup the admin account with as email and whyohwhy as password.

Edit a new file with the following

from locust import HttpLocust, TaskSet, task

class WebsiteTasks(TaskSet):
    def on_start(self):'/ghost/signin/', {
            "username": "",
            "password": "whyohwhy"

    def index(self):

    def welcome(self):

    def signout(self):

class WebsiteUser(HttpLocust):
    task_set = WebsiteTasks
    min_wait = 5000
    max_wait = 15000

Then locust -f --host localhost and open http://localhost:8089 to display the ongoing test.