search-engine-parser
search-engine-parser copied to clipboard
`RuntimeError: There is no current event loop in thread 'Thread-2'.`
Describe the bug
When I use search-engine-parser with flask, I get this error: RuntimeError: There is no current event loop in thread 'Thread-2'.
To Reproduce Steps to reproduce the behavior:
- Create a web server with the flask module
- Import search_engine_parser
- Search using search_engine_parse
- See error
Screenshots
Desktop (please complete the following information):
- OS: Ubuntu (Linux)
- Python Version 3.9.10
- Search-engine-parser version git+https://github.com/bisoncorps/search-engine-parser@0c2f4bde7dd21c10e64c9204417d9a228e96c187
Same thing on Django project. Tried python 3.10 and 3.7