func processLines(done chan<- struct{}, getRx *regexp.Regexp,
	pageList safeslice.SafeSlice, lines <-chan string) {
	for line := range lines {
		if matches := getRx.FindStringSubmatch(line); matches != nil {
			pageList.Append(matches[1])
		}
	}
	done <- struct{}{}
}