Only getting non-explicit search results
codeblech opened this issue · 3 comments
codeblech commented
By default, the module seems to only respond with non-explicit search results (SafeSearch: moderate).
Is there a way to change this to SafeSearch: off ?
CatchZeng commented
SafeSearch is a setting item of bing.com, which does not belong to the scope of bing_images module.
codeblech commented
I saw that feature in this related module,
https://github.com/gurugaurav/bing_image_downloader
…On Tue, Jan 25, 2022, 7:11 AM Catch Zeng ***@***.***> wrote:
SafeSearch is a setting item of bing.com, which does not belong to the
scope of bing_images module.
See more at
https://support.microsoft.com/en-us/topic/turn-bing-safesearch-on-or-off-446ebfb8-becf-f035-9eea-b660e8420458
—
Reply to this email directly, view it on GitHub
<#4 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AI5NK46RQYHZV57N4CEY7VLUXX5WLANCNFSM5MV2QLHQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
CatchZeng commented
You can upgrade bing_image to 0.2.2 and try extra_query_params
.
from bing_images import bing
urls = bing.fetch_image_urls("cat",
limit=10,
file_type='png',
filters='+filterui:aspect-square+filterui:color2-bw',
extra_query_params='&adlt=off')
print("{} images.".format(len(urls)))
counter = 1
for url in urls:
print("{}: {}".format(counter, url))
counter += 1