From 1268c5b52b5d3828eb488031c08979aae16a8aa0 Mon Sep 17 00:00:00 2001 From: extreme4all <40169115+extreme4all@users.noreply.github.com> Date: Tue, 5 Nov 2024 15:45:03 +0100 Subject: [PATCH] noting the speed improvement --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 8e61422..1e075e4 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,13 @@ async def main(): ) print(player_stats) + # if you do not provide a session we'll make one for you, this session will not be reused + # for multiple requests we advice doing that within one session like the example above + player_stats = await hiscore_instance.get( + mode=HSMode.OLDSCHOOL, + player="extreme4all", + ) + print(player_stats) # Run the asynchronous main function if __name__ == "__main__": asyncio.run(main())