Timchen.py utilizes the timchen.tk api to get random timchen images. It can be utilized both synchronously and asynchronously.
Here is an example on how to use it asynchronously:
import timchen import asyncio async def main(): t = await timchen.get_random() print(t.url) print(t.description) loop = asyncio.get_event_loop() loop.run_until_complete(main())
And here is an example on how to use it synchronously
import timchen def main(): t = timchen.get_random_sync() print(t.url) print(t.description) main()
Gets a random timchen pic
Gets a timchen pic from its ID
Gets all the timchen pics as a tuple
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.