raznem / parsera

Lightweight library for scraping web-sites with LLMs
https://parsera.org
GNU General Public License v2.0
859 stars 55 forks source link

asyncio.run() cannot be called from a running event loop #10

Closed kabani7 closed 2 months ago

kabani7 commented 2 months ago

I keep getting this error image

raznem commented 2 months ago

If you are running it from the Jupyter Notebook, either use arun instead of run or add nest_asyncio at the beginning of your notebook:

import nest_asyncio
nest_asyncio.apply()