搜索引擎识别增加facebook

This commit is contained in:
刘祥超
2024-05-08 17:18:48 +08:00
parent 731f213310
commit 870d18a5ac
2 changed files with 3 additions and 0 deletions

View File

@@ -34,6 +34,7 @@ func TestParseQueue_ParseIP(t *testing.T) {
"42.120.160.1",
"42.236.10.98",
"124.115.0.100",
"185.1.213.197",
} {
ptr, err := queue.ParseIP(ip)
if err != nil {
@@ -58,6 +59,7 @@ func TestParseQueue_ParsePtr(t *testing.T) {
{"shenmaspider-42-120-160-1.crawl.sm.cn.", "sm"},
{"93-158-161-39.spider.yandex.com.", "yandex"},
{"25.bl.bot.semrush.com.", "semrush"},
{"facebook-waw.1-ix.net.", "facebook"},
} {
a.IsTrue(queue.ParsePtr(s[0]) == s[1])
}