maubot-tmdb/aiohttp_tester.py

16 lines
338 B
Python
Raw Normal View History

2021-07-03 08:29:08 +01:00
from tmdb.tmdb_api import Movie
import asyncio
import time
2021-07-03 08:29:08 +01:00
async def test():
start = time.time()
movie = Movie()
await movie.load_parameters()
id = await movie.search_title('Breakfast Club')
2021-09-23 12:39:40 +01:00
print("ID of Breakfast Club " + str(id))
2021-07-03 08:29:08 +01:00
print(time.time() - start)
await movie.close_session()
2021-07-03 08:29:08 +01:00
asyncio.run(test())