Always scrape the first page

This commit is contained in:
James Mills
2021-02-07 18:49:31 +10:00
parent b34ff5ade2
commit aee086ea34
3 changed files with 375 additions and 3 deletions

View File

@@ -54,9 +54,9 @@ func FindLinks(url string) chan string {
}
})
c.Visit(url)
go func() {
links <- url
c.Visit(url)
c.Wait()
close(links)
}()

372
internal/rice-box.go Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long