Sets the URL referring to a robots.txt file.
(self, url)
| 67 | self.last_checked = time.time() |
| 68 | |
| 69 | def set_url(self, url): |
| 70 | """Sets the URL referring to a robots.txt file.""" |
| 71 | self.url = url |
| 72 | self.host, self.path = urllib.parse.urlsplit(url)[1:3] |
| 73 | |
| 74 | def read(self): |
| 75 | """Reads the robots.txt URL and feeds it to the parser.""" |
no outgoing calls