这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@dalf
Copy link
Contributor

@dalf dalf commented Aug 27, 2023

What does this PR do?

Remove the usage of searx.network.multi_requests
The results from Bing contains the target URL encoded in base64 See the u parameter, remove the first two character "a1", and done.

Also, previously, if the number_of_results was lower than the actual result, all the results were ignored. This commit ignore number_of_results but still provides the results.

[EDIT] related to searx/searx#1387 (on searx) --> I've added a comment about that

Why is this change important?

Remove the usage of searx.network.multi_requests. Bing is the only working engine to use this function.
From that, we might switch to sync code in searx.network.

Also, this PR make bing a little bit faster ; anyway, bing is already on of the fastest engine.

How to test this PR locally?

make requests on the bing engine.

Author's checklist

It seems https://bing.com does not work at all without javascript (?) : If I type a query in the front page, then press enter, nothing happen.

Related issues

@dalf dalf force-pushed the mod_bing branch 3 times, most recently from 700e6bb to ce5bdac Compare August 27, 2023 18:34
Remove the usage of searx.network.multi_requests
The results from Bing contains the target URL encoded in base64
See the u parameter, remove the first two character "a1", and done.

Also add a comment the check of the result_len / pageno
( from searx/searx#1387 )
Copy link
Member

@return42 return42 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

resolve redirect without additional requests

Seems to work / thanks a lot 👍 (it was long time on my hidden ToDo list)

In my tests I realized, that bing engine needs some more review (not related to this PR):

  • time range option
  • safe search option
  • page no

.. do no longer work / I suppose bing has changed its API in a line with which they promote this AI thing :o

@return42 return42 merged commit faa4280 into searxng:master Aug 29, 2023
@dalf dalf mentioned this pull request Sep 8, 2023
5 tasks
@dalf dalf deleted the mod_bing branch September 9, 2023 00:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants