maubot-tmdb/aiohttp_tester.py
2021-09-23 13:39:40 +02:00

16 lines
338 B
Python

from tmdb.tmdb_api import Movie
import asyncio
import time
async def test():
start = time.time()
movie = Movie()
await movie.load_parameters()
id = await movie.search_title('Breakfast Club')
print("ID of Breakfast Club " + str(id))
print(time.time() - start)
await movie.close_session()
asyncio.run(test())