aboutsummaryrefslogtreecommitdiff
path: root/tools/charcrawler/crawler/acd.go
diff options
context:
space:
mode:
Diffstat (limited to 'tools/charcrawler/crawler/acd.go')
-rw-r--r--tools/charcrawler/crawler/acd.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/charcrawler/crawler/acd.go b/tools/charcrawler/crawler/acd.go
index 31efb0d..9a37b95 100644
--- a/tools/charcrawler/crawler/acd.go
+++ b/tools/charcrawler/crawler/acd.go
@@ -25,6 +25,9 @@ func (a ACDCrawler) Crawl(id int) (CharacterData, error) {
25 if strings.Contains(text, "bad character : try") { 25 if strings.Contains(text, "bad character : try") {
26 return nil, CharacterNotFound 26 return nil, CharacterNotFound
27 } 27 }
28 if strings.Contains(text, "Your IP has been blocked") {
29 return nil, Banned
30 }
28 dataTr := doc.Find("#besttable").Next().ChildrenFiltered("tbody").ChildrenFiltered("tr") 31 dataTr := doc.Find("#besttable").Next().ChildrenFiltered("tbody").ChildrenFiltered("tr")
29 leftSide := dataTr.Children().Eq(0) 32 leftSide := dataTr.Children().Eq(0)
30 rightSide := dataTr.Children().Eq(1) 33 rightSide := dataTr.Children().Eq(1)