Robots.txt¶
Parser¶
synopsis: | Specialized ptp.libptp.parser.AbstractParser classes for the robots.txt files. |
---|
-
class
ptp.tools.robots.parser.
RobotsParser
(pathname, filename='*robots.txt', light=False, first=True)[source]¶ Robots specialized parser.
-
__tool__
= 'robots'¶
-
__format__
= 'txt'¶
-
classmethod
is_mine
(pathname, filename='*robots.txt', light=False, first=True)[source]¶ Check if it can handle the report file.
Parameters: Raises: - IOError – when the report file cannot be found.
- OSError – when the report file cannot be found.
Returns: True if it supports the report, False otherwise.
Return type:
-
Signatures¶
synopsis: | Robots.txt might contains interesting Disallow entries. This file tries to define a ranking for them. |
---|