79598151

Date: 2025-04-29 10:38:58
Score: 2
Natty:
Report link
from locust import HttpUser, task, between
import random
 
URLS = [
    "/",
    "/about",
    "/products",
    "/contact",
    "/blog/page1",
    "/blog/page2", 
]

class WebsiteUser(HttpUser):
    wait_time = between(1, 3)

    @task
    def browse(self):
        url = random.choice(URLS)
        self.client.get(url)


here is the sample video of this

https://www.youtube.com/watch?v=6fotO30YmkQ&t=3s

you can create a free cloud vm to rule all workers

Reasons:
  • Blacklisted phrase (1): youtube.com
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Çağlar Can Sarıkaya