Skip to content

Commit

Permalink
doc: mention that OnScraped executes after OnHTML and OnXML
Browse files Browse the repository at this point in the history
  • Loading branch information
aladmit committed Nov 15, 2024
1 parent 99b7fb1 commit fb79d36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions colly.go
Original file line number Diff line number Diff line change
Expand Up @@ -989,8 +989,8 @@ func (c *Collector) OnError(f ErrorCallback) {
c.lock.Unlock()
}

// OnScraped registers a function. Function will be executed after
// OnHTML, as a final part of the scraping.
// OnScraped registers a function that will be executed as the final part of
// the scraping, after OnHTML and OnXML have finished.
func (c *Collector) OnScraped(f ScrapedCallback) {
c.lock.Lock()
if c.scrapedCallbacks == nil {
Expand Down

0 comments on commit fb79d36

Please sign in to comment.