diff options
| author | Philipp Tanlak <philipp.tanlak@gmail.com> | 2025-01-10 13:09:50 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-10 13:09:50 +0100 |
| commit | 40e02d5d28e59dbeb6134afdce12536c602e6aa5 (patch) | |
| tree | 24c84c4084cf72e552804397eecc9f5bb3c2d4be /scrape.go | |
| parent | bf99c233a18c3165e0d4d251b41224e5bc6eb93d (diff) | |
Implement manual following (#82)
Diffstat (limited to 'scrape.go')
| -rw-r--r-- | scrape.go | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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) |