This is the equivalent of not being able to use X's API and using a browser to scrape it instead.
It's pretty cool what you can do once you emulate the terminal.
I only made it work with Claude Code but this approach can easily be adapted to Gemini CLI