This tutorial shows you how to get cookies: https://youtu.be/1ElwgTeCn04
Script: https://drive.google.com/file/d/1XcDXhKOG3aV1RUY2kAaQOO-WmbD7PkV8/view?usp=sharing
Please do not forget to log in to your Twitter account before extracting cookies