@@ -86,27 +86,79 @@ Comparison
8686==========
8787
8888The following table compares Protego to the most popular ``robots.txt `` parsers
89- implemented in Python or featuring Python bindings:
90-
91- +----------------------------+---------+-----------------+--------+---------------------------+
92- | | Protego | RobotFileParser | Reppy | Robotexclusionrulesparser |
93- +============================+=========+=================+========+===========================+
94- | Implementation language | Python | Python | C++ | Python |
95- +----------------------------+---------+-----------------+--------+---------------------------+
96- | Reference specification | Google _ | `Martijn Koster’s 1996 draft `_ |
97- +----------------------------+---------+-----------------+--------+---------------------------+
98- | `Wildcard support `_ | ✓ | | ✓ | ✓ |
99- +----------------------------+---------+-----------------+--------+---------------------------+
100- | `Length-based precedence `_ | ✓ | | ✓ | |
101- +----------------------------+---------+-----------------+--------+---------------------------+
102- | Performance _ | | +40% | +1300% | -25% |
103- +----------------------------+---------+-----------------+--------+---------------------------+
104-
105- .. _Google : https://developers.google.com/search/reference/robots_txt
106- .. _Length-based precedence : https://developers.google.com/search/reference/robots_txt#order-of-precedence-for-group-member-lines
107- .. _Martijn Koster’s 1996 draft : https://www.robotstxt.org/norobots-rfc.txt
108- .. _Performance : https://anubhavp28.github.io/gsoc-weekly-checkin-12/
109- .. _Wildcard support : https://developers.google.com/search/reference/robots_txt#url-matching-based-on-path-values
89+ implemented in Python. Performance is the speed difference against Protego,
90+ measured as executed instructions, so a positive value means faster than
91+ Protego.
92+
93+ .. comparison-table-start
94+
95+ .. list-table ::
96+ :header-rows: 1
97+ :stub-columns: 1
98+
99+ * -
100+ - Protego
101+ - RobotFileParser
102+ - robotspy
103+ - Robotexclusionrulesparser
104+ * - Version tested
105+ -
106+ - Python 3.14.7
107+ - 0.13.0
108+ - 1.7.1
109+ * - Reference specification
110+ - Google _
111+ - `Martijn Koster's 1996 draft `_
112+ - `RFC 9309 `_
113+ - `Martijn Koster's 1996 draft `_
114+ * - `Wildcard support `_
115+ - ✓
116+ -
117+ - ✓
118+ - ✓
119+ * - `Length-based precedence `_
120+ - ✓
121+ -
122+ - ✓
123+ -
124+ * - Crawl-delay
125+ - ✓
126+ - ✓
127+ -
128+ -
129+ * - Request-rate
130+ - ✓
131+ -
132+ -
133+ -
134+ * - Visit-time
135+ - ✓
136+ -
137+ -
138+ -
139+ * - Sitemaps
140+ - ✓
141+ - ✓
142+ - ✓
143+ - ✓
144+ * - Host
145+ - ✓
146+ -
147+ -
148+ -
149+ * - Performance
150+ -
151+ - +40%
152+ -
153+ - -25%
154+
155+ .. comparison-table-end
156+
157+ .. _Google : https://developers.google.com/crawling/docs/robots-txt/robots-txt-spec
158+ .. _Length-based precedence : https://developers.google.com/crawling/docs/robots-txt/robots-txt-spec#order-of-precedence-for-rules
159+ .. _Martijn Koster's 1996 draft : https://www.robotstxt.org/norobots-rfc.txt
160+ .. _RFC 9309 : https://www.rfc-editor.org/rfc/rfc9309
161+ .. _Wildcard support : https://developers.google.com/crawling/docs/robots-txt/robots-txt-spec#url-matching-based-on-path-values
110162
111163
112164API Reference
0 commit comments