You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now, this did NOT fix the empty list issue for me, but this is important first step in case you have accidentally installed the wrong version. The reason was because the description would always be None, and thus the check in modules/standard_search.py would always be true, and thus not append to results.
in 'modules/standard_search.py' on line 96:
if void is True:
if res.description is None:
continue
This check can prevent empty results being added, but as soon as the description parsing function is no longer current this will mess everything up, leaving you with an empty list.
I replaced it with a simpler check (which you should really expand upon if you want to avoid unpopulated responses):
if res is None:
continue
if res.description is None: # Optional
res.description = "No description"
Obviously this does not fix the function to get the description, but it does make sure you can get links, title etc.
The text was updated successfully, but these errors were encountered:
First of all, make sure you have the correct version of bs4 installed.
You can run the following commands at your own risk if you want to completely uninstall old versions and install bs4 for python3:
Now, this did NOT fix the empty list issue for me, but this is important first step in case you have accidentally installed the wrong version. The reason was because the description would always be None, and thus the check in modules/standard_search.py would always be true, and thus not append to results.
in 'modules/standard_search.py' on line 96:
This check can prevent empty results being added, but as soon as the description parsing function is no longer current this will mess everything up, leaving you with an empty list.
I replaced it with a simpler check (which you should really expand upon if you want to avoid unpopulated responses):
Obviously this does not fix the function to get the description, but it does make sure you can get links, title etc.
The text was updated successfully, but these errors were encountered: