add alternate duckduckgo ua

This commit is contained in:
Azareal 2020-03-09 20:49:22 +10:00
parent 42b38ae3d8
commit d586220df2
2 changed files with 4 additions and 0 deletions

View File

@ -679,6 +679,7 @@ var markToAgent = map[string]string{
"Googlebot": "googlebot", "Googlebot": "googlebot",
"yandex": "yandex", "yandex": "yandex",
"DuckDuckBot": "duckduckgo", "DuckDuckBot": "duckduckgo",
"DuckDuckGo": "duckduckgo",
"Baiduspider": "baidu", "Baiduspider": "baidu",
"Sogou": "sogou", "Sogou": "sogou",
"ToutiaoSpider": "toutiao", "ToutiaoSpider": "toutiao",
@ -724,6 +725,7 @@ var markToID = map[string]int{
"Googlebot": 12, "Googlebot": 12,
"yandex": 13, "yandex": 13,
"DuckDuckBot": 21, "DuckDuckBot": 21,
"DuckDuckGo": 21,
"Baiduspider": 17, "Baiduspider": 17,
"Sogou": 18, "Sogou": 18,
"ToutiaoSpider": 19, "ToutiaoSpider": 19,

View File

@ -299,6 +299,7 @@ func main() {
"Googlebot", "Googlebot",
"yandex", "yandex",
"DuckDuckBot", "DuckDuckBot",
"DuckDuckGo",
"Baiduspider", "Baiduspider",
"Sogou", "Sogou",
"ToutiaoSpider", "ToutiaoSpider",
@ -347,6 +348,7 @@ func main() {
"Googlebot": "googlebot", "Googlebot": "googlebot",
"yandex": "yandex", // from the URL "yandex": "yandex", // from the URL
"DuckDuckBot": "duckduckgo", "DuckDuckBot": "duckduckgo",
"DuckDuckGo":"duckduckgo",
"Baiduspider": "baidu", "Baiduspider": "baidu",
"Sogou": "sogou", "Sogou": "sogou",
"ToutiaoSpider": "toutiao", "ToutiaoSpider": "toutiao",