Called from Crawler.crawl() to normalize URLs. For example: return url.split("?")[0]
(self, url)
| 3220 | return False |
| 3221 | |
| 3222 | def normalize(self, url): |
| 3223 | """ Called from Crawler.crawl() to normalize URLs. |
| 3224 | For example: return url.split("?")[0] |
| 3225 | """ |
| 3226 | # All links pass through here (visited or not). |
| 3227 | # This can be a place to count backlinks. |
| 3228 | return url |
| 3229 | |
| 3230 | def follow(self, link): |
| 3231 | """ Called from Crawler.crawl() to determine if it should follow this link. |
no outgoing calls