mirror of
https://github.com/searxng/searxng.git
synced 2026-07-20 06:51:23 +00:00
Baidu image search returns antiFlag=1 when the acjson API is called without session cookies from image.baidu.com. Warm up cookies with a GET to the image homepage, cache them for one hour via EngineCache, and pass them to image search requests. Raise SearxEngineAccessDeniedException when antiFlag is still returned. Signed-off-by: Hu Butui <hot123tea123@gmail.com>
6.8 KiB
6.8 KiB