Staging: this is not the live site, pydocs.org.
Internet Protocols and Support
This class provides a set of methods to read, parse and answer
questions about a single robots.txt file.
Members of RobotFileParser
c
- can_fetch
- using the parsed robots.txt decide if useragent can fetch url
- crawl_delay
- Returns the value of the Crawl-delay parameter from robots.txt for the useragent in question.
m
- modified
- Sets the time the robots.txt file was last fetched to the current time.
- mtime
- Returns the time the robots.txt file was last fetched.
p
- parse
- Parse the input lines from a robots.txt file.
r
- read
- Reads the robots.txt URL and feeds it to the parser.
- request_rate
- Returns the contents of the Request-rate parameter from robots.txt as a named tuple RequestRate(requests, seconds).
s
- set_url
- Sets the URL referring to a robots.txt file.
- site_maps
- Returns the contents of the Sitemap parameter from robots.txt in the form of a list().