OlegYurchik / pyInstagram

This is a simple and easy-to-use library for interacting with the Instagram. The library works through the web interface of the Instagram and does not depend on the official API
MIT License
232 stars 49 forks source link

AsyncWebAgent() #90

Closed evgenyadev closed 4 years ago

evgenyadev commented 4 years ago

Можно пример, как правильно использовать асинхронный класс? Например чтобы лайки посмотреть через анонимный класс

async def main():
    anon_agent = AsyncWebAgent()

asyncio.run(main())

Даёт ошибку

Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x041347D8>