Skip to content

Conversation

@PredictiveManish
Copy link

@PredictiveManish PredictiveManish commented Nov 12, 2025

Closes: #141444

gh-141444: Updated Doc/library/urllib.robotparser.rst to use https://www.python.org/robots.txt in the example so it reflects a live robots file. The snippet now shows the expected None values for request_rate and crawl_delay, and demonstrates can_fetch() returning True for an allowed path and False for a disallowed one.


📚 Documentation preview 📚: https://cpython-previews--141461.org.readthedocs.build/

@python-cla-bot
Copy link

python-cla-bot bot commented Nov 12, 2025

All commit authors signed the Contributor License Agreement.

CLA signed

@bedevere-app bedevere-app bot added awaiting review docs Documentation in the Doc dir skip news labels Nov 12, 2025
@github-project-automation github-project-automation bot moved this to Todo in Docs PRs Nov 12, 2025
@PredictiveManish PredictiveManish marked this pull request as draft November 12, 2025 11:03
@PredictiveManish PredictiveManish changed the title gh-141444: gh-141444: Doc: update urllib.robotparser example to use python.org robots.txt Nov 12, 2025
@PredictiveManish PredictiveManish marked this pull request as ready for review November 12, 2025 11:04
@serhiy-storchaka
Copy link
Member

I think that it would be better to find an example with non-None values.

@StanFromIreland
Copy link
Member

StanFromIreland commented Nov 12, 2025

We could add an example to https://pythontest.net?

@PredictiveManish
Copy link
Author

We could add an example to https://pythontest.net?

Sorry, I didn't got the point

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting review docs Documentation in the Doc dir skip news

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

Dead example URL in urlib.robotparser documentation

3 participants