Skip to content

Commit f99bb4d

Browse files
authored
Merge pull request #832 from aladmit/onscraped_doc
doc: mention that OnScraped executes after OnHTML and OnXML
2 parents 2e6ec0c + fb79d36 commit f99bb4d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

colly.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1013,8 +1013,8 @@ func (c *Collector) OnError(f ErrorCallback) {
10131013
c.lock.Unlock()
10141014
}
10151015

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

0 commit comments

Comments
 (0)