Skip to content

[3.13] gh-138907: Support RFC 9309 in robotparser (GH-138908)#149376

Merged
serhiy-storchaka merged 1 commit intopython:3.13from
serhiy-storchaka:backport-bc285e5-3.13
May 4, 2026
Merged

[3.13] gh-138907: Support RFC 9309 in robotparser (GH-138908)#149376
serhiy-storchaka merged 1 commit intopython:3.13from
serhiy-storchaka:backport-bc285e5-3.13

Conversation

@serhiy-storchaka
Copy link
Copy Markdown
Member

@serhiy-storchaka serhiy-storchaka commented May 4, 2026

  • empty lines are always ignored instead of separating groups
  • the "user-agent" line after a rule starts a new group
  • groups matching the same user agent are now merged
  • the rule with the longest match wins instead of the first matching rule
  • in case of equal matches, the “Allow” rule wins over “Disallow”
  • special characters “$” and “*” are now supported in rules
  • prefer full match for user agent

(cherry picked from commit bc285e5)

)

* empty lines are always ignored instead of separating groups
* the "user-agent" line after a rule starts a new group
* groups matching the same user agent are now merged
* the rule with the longest match wins instead of the first matching rule
* in case of equal matches, the “Allow” rule wins over “Disallow”
* special characters “$” and “*” are now supported in rules
* prefer full match for user agent
(cherry picked from commit bc285e5)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
@serhiy-storchaka serhiy-storchaka merged commit 561d1b9 into python:3.13 May 4, 2026
43 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant