Resolved double printing bug

Closes #130
master
Michael 2018-08-16 17:19:22 +10:00 committed by GitHub
parent 29d7ab941e
commit 624f00977a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 2 deletions

View File

@ -42,7 +42,6 @@ func Query(args ...interface{}) interface{} {
return subdomains
}
fmt.Printf("%s", string(b))
numPages, err := strconv.Atoi(strings.Split(string(b), "\n")[0])
if err != nil {
if !state.Silent {
@ -51,7 +50,6 @@ func Query(args ...interface{}) interface{} {
return subdomains
}
fmt.Printf("%d", numPages)
for i := 0; i <= numPages; i++ {
resp, err := helper.GetHTTPResponse("http://web.archive.org/cdx/search/cdx?url=*."+domain+"/*&output=json&fl=original&collapse=urlkey&page="+string(i), state.Timeout)
if err != nil {