Markus Heiser
da7c30291d
[fix] Google API changed
...
It seems that Google is rolling out a modified WEB API [1][2].
In the past there was only the UI language in the `hl` argument but nowadays it
seems a combination of the UI language and the "search region" is mixed in this
argument and the `gl` argument has been removed. I'm very surprised that google
is starting to mix the parameters of the UI with the parameters of the search
index.
This patch modifies the get_google_info(..) function. Beside Google-WEB this
function is also used by other Google services, here are some examples to test
region & language of ..
- Google-WEB: `!go dragon boat :en-CA`
- Google-News: `!gon dragon boat :en-CA`
- Google-Videos: `!gov bmw :en-CA`
- Goolge-Images `!goi bmw :en-CA`
- [1] https://github.com/searxng/searxng/issues/2515#issuecomment-1606294635
- [2] https://github.com/searxng/searxng/issues/2515#issuecomment-1607150817
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2023-06-26 18:28:09 +02:00
..
2023-06-25 13:58:26 +02:00
2022-08-24 18:33:11 +07:00
2021-12-27 09:26:22 +01:00
2021-12-27 09:26:22 +01:00
2023-03-15 19:55:20 +01:00
2022-08-27 06:23:30 +07:00
2022-08-27 06:17:58 +07:00
2023-06-25 13:58:26 +02:00
2021-12-27 09:26:22 +01:00
2022-09-23 20:45:58 +02:00
2022-02-21 22:12:07 +01:00
2021-12-27 09:26:22 +01:00
2023-03-24 10:37:42 +01:00
2023-03-24 10:37:42 +01:00
2023-03-24 10:37:42 +01:00
2023-06-25 13:58:26 +02:00
2021-12-27 09:26:22 +01:00
2021-12-27 09:26:22 +01:00
2022-09-25 15:46:29 +02:00
2023-02-10 13:59:21 +01:00
2022-02-01 08:02:42 +01:00
2023-06-25 13:58:26 +02:00
2022-08-10 09:14:36 +02:00
2022-02-18 19:00:49 +01:00
2023-03-24 10:37:42 +01:00
2022-08-01 17:01:59 +02:00
2021-12-27 09:26:22 +01:00
2021-12-27 09:26:22 +01:00
2021-12-27 09:26:22 +01:00
2023-02-10 13:59:21 +01:00
2021-12-27 10:16:20 +01:00
2023-03-24 10:37:42 +01:00
2023-03-24 10:37:42 +01:00
2023-04-07 11:03:25 +02:00
2023-06-25 13:58:26 +02:00
2022-08-20 08:41:03 +02:00
2021-12-27 09:26:22 +01:00
2021-01-14 20:57:17 +01:00
2022-04-16 19:10:35 +02:00
2021-12-27 09:26:22 +01:00
2022-07-24 19:14:26 +02:00
2022-01-05 11:00:11 +01:00
2023-03-30 21:04:53 +02:00
2021-12-27 09:26:22 +01:00
2021-12-27 09:26:22 +01:00
2022-02-13 14:20:47 +01:00
2021-12-27 09:26:22 +01:00
2022-02-21 22:12:07 +01:00
2023-03-24 10:37:42 +01:00
2022-09-27 18:32:14 +02:00
2023-03-24 10:37:42 +01:00
2023-04-02 19:19:59 +02:00
2023-04-16 19:15:44 +02:00
2023-03-24 10:37:42 +01:00
2023-03-24 10:37:42 +01:00
2023-06-26 18:28:09 +02:00
2022-01-05 11:03:44 +01:00
2022-01-28 22:33:41 +01:00
2022-02-18 19:00:49 +01:00
2022-05-07 18:23:10 +02:00
2022-06-11 14:17:44 +02:00
2021-12-27 09:26:22 +01:00
2022-07-04 19:06:45 +02:00
2021-12-27 09:26:22 +01:00
2022-03-07 19:49:16 +01:00
2021-12-27 09:26:22 +01:00
2021-09-07 13:26:59 +02:00
2022-11-07 08:07:06 -06:00
2022-02-19 21:59:12 +01:00
2022-07-30 18:04:44 +02:00
2022-07-30 18:04:44 +02:00
2021-12-27 09:26:22 +01:00
2021-01-14 20:57:17 +01:00
2022-08-01 17:01:59 +02:00
2022-01-07 14:14:31 +01:00
2021-12-27 09:26:22 +01:00
2023-06-25 13:58:26 +02:00
2022-06-02 14:32:37 +02:00
2022-09-27 18:32:14 +02:00
2021-12-27 09:26:22 +01:00
2022-07-30 18:04:44 +02:00
2022-09-23 20:45:58 +02:00
2023-03-24 10:37:42 +01:00
2021-12-27 09:26:22 +01:00
2021-12-27 09:26:22 +01:00
2021-12-27 09:26:22 +01:00
2021-12-27 09:26:22 +01:00
2021-12-27 09:26:22 +01:00
2021-12-27 09:26:22 +01:00
2022-01-02 21:18:29 +01:00
2022-09-23 20:52:55 +02:00
2023-03-24 10:37:42 +01:00
2023-03-31 17:25:39 +02:00
2022-07-24 21:10:55 +02:00
2022-02-04 14:55:21 +01:00
2021-12-27 09:26:22 +01:00
2022-02-19 21:59:12 +01:00
2022-02-18 19:00:49 +01:00
2022-09-25 15:25:55 +02:00
2021-12-27 09:26:22 +01:00
2021-12-27 09:26:22 +01:00
2023-06-25 13:58:26 +02:00
2022-07-23 16:00:58 +02:00
2021-12-27 09:26:22 +01:00
2021-12-27 09:26:22 +01:00
2022-01-05 11:03:44 +01:00
2022-08-17 19:45:42 +07:00
2021-12-27 09:26:22 +01:00
2022-02-18 19:00:49 +01:00
2023-04-17 08:48:57 +02:00
2023-06-25 13:58:26 +02:00
2022-09-27 18:32:14 +02:00
2021-12-27 09:26:22 +01:00
2021-12-27 09:26:22 +01:00
2023-04-07 11:03:25 +02:00
2022-01-30 19:48:40 +01:00
2022-09-27 18:32:14 +02:00
2021-12-27 09:26:22 +01:00
2021-12-27 10:16:20 +01:00
2023-03-24 10:37:42 +01:00
2022-02-18 19:00:49 +01:00
2022-07-25 13:27:06 +02:00
2022-07-05 22:27:55 +02:00