How to get the channel_editor (dont mine)

Can you write a piece of code with an automatic receipt of a channel_editor token on Python or another programming language?