summaryrefslogtreecommitdiff
path: root/scrape.go
diff options
context:
space:
mode:
authorPhilipp Tanlak <philipp.tanlak@gmail.com>2025-01-10 13:09:50 +0100
committerGitHub <noreply@github.com>2025-01-10 13:09:50 +0100
commit40e02d5d28e59dbeb6134afdce12536c602e6aa5 (patch)
tree24c84c4084cf72e552804397eecc9f5bb3c2d4be /scrape.go
parentbf99c233a18c3165e0d4d251b41224e5bc6eb93d (diff)
Implement manual following (#82)
Diffstat (limited to 'scrape.go')
-rw-r--r--scrape.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/scrape.go b/scrape.go
index a183681..c52f142 100644
--- a/scrape.go
+++ b/scrape.go
@@ -207,6 +207,9 @@ func (s *Scraper) process(url string, depth int) {
HTML: string(response.Body),
URL: request.URL,
Process: s.processImmediate,
+ Follow: func(url string) {
+ s.enqueueJob(url, depth+1)
+ },
}
response.Data, err = s.ScrapeFunc(p)