Open bentsi opened 2 years ago
succeeded to find the correct cookie, but now getting results parsing issue:
Traceback (most recent call last):
File "/home/bentsi/.pyenv/versions/cai-backend/lib/python3.10/site-packages/search_engine_parser/core/base.py", line 252, in get_results
search_results = self.parse_result(results, **kwargs)
File "/home/bentsi/.pyenv/versions/cai-backend/lib/python3.10/site-packages/search_engine_parser/core/base.py", line 151, in parse_result
rdict = self.parse_single_result(each, **kwargs)
File "/home/bentsi/.pyenv/versions/cai-backend/lib/python3.10/site-packages/search_engine_parser/core/engines/bing.py", line 68, in parse_single_result
rdict["descriptions"] = desc.text
AttributeError: 'NoneType' object has no attribute 'text'
will work on a fix
Thanks for the detailed investigation and working on a fix
Describe the bug Running simple code (based on the Readme)
getting:
after digging into the root cause I found following: 1) http request to Bing returns response with HTML without results 2) after adding a cookie that Google Chrome adds to GET headers, the code starts working
So the solution is to add cookie data, but I am not sure what exactly should be added, since cookie looks sophisticated.
To Reproduce
Expected behavior Search returns results Screenshots
Desktop (please complete the following information):