MCPcopy Index your code
hub / github.com/python/cpython / mtime

Method mtime

Lib/urllib/robotparser.py:52–59  ·  view source on GitHub ↗

Returns the time the robots.txt file was last fetched. This is useful for long-running web spiders that need to check for new robots.txt files periodically.

(self)

Source from the content-addressed store, hash-verified

50 self.last_checked = 0
51
52 def mtime(self):
53 """Returns the time the robots.txt file was last fetched.
54
55 This is useful for long-running web spiders that need to
56 check for new robots.txt files periodically.
57
58 """
59 return self.last_checked
60
61 def modified(self):
62 """Sets the time the robots.txt file was last fetched to the

Callers 4

test_read_404Method · 0.95
crawl_delayMethod · 0.95
request_rateMethod · 0.95
test_basicMethod · 0.45

Calls

no outgoing calls

Tested by 2

test_read_404Method · 0.76
test_basicMethod · 0.36