Created
January 24, 2026 11:04
-
-
Save cmj/e4565edd5b335eeee402bc74d17477c2 to your computer and use it in GitHub Desktop.
basic twikit tweet test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| import asyncio | |
| from twikit import Client | |
| client = Client() | |
| # charles proxy | |
| #client = Client(proxy='http://127.0.0.1:8888') | |
| client.load_cookies('cookies.json') | |
| async def tweet(): | |
| await client.create_tweet(text='Talk is cheap. Show me the code.') | |
| asyncio.run(tweet()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment