I’m not sure if this is what you’re looking for, but me and my colleagues created a tool (
https://github.com/zalando-incubator/transformer) to convert actions recorded in a browser (in har format) to Locust scenarios. Recorded state (like cookies) can be programmatically removed by user-defined plugins.