tristantao/py-bing-search

Supporting safesearch off

Closed this issue · 4 comments

Hi,

I will try to send a pull request today with the ability to choose whether safesearch is on or off (can be on by default, as bing supports)

but would be useful to have control over this param.

Great, feel free to send a pr whenever you get a chance.

I would like to have this ability as well. Thank you.

Temporarily, I changed
QUERYSTRING_TEMPLATE = '?Query={}&$top={}&$skip={}&$format={}'
to
QUERYSTRING_TEMPLATE = "?Adult='Strict'&Query={}&$top={}&$skip={}&$format={}"

Check README (updating now) for how to use the new custom params feature.