https://github.com/python/cpython/commit/34e5a63f145585cbeb09f21e9453192d9b7c410c
commit: 34e5a63f145585cbeb09f21e9453192d9b7c410c
branch: main
author: kovan <[email protected]>
committer: serhiy-storchaka <[email protected]>
date: 2026-02-04T10:45:15+02:00
summary:

gh-141444: Replace dead URL in urllib.robotparser example (GH-144443)

Co-authored-by: Claude Opus 4.5 <[email protected]>

files:
M Doc/library/urllib.robotparser.rst

diff --git a/Doc/library/urllib.robotparser.rst 
b/Doc/library/urllib.robotparser.rst
index 674f646c633bbd..ba719ae084e7e0 100644
--- a/Doc/library/urllib.robotparser.rst
+++ b/Doc/library/urllib.robotparser.rst
@@ -91,16 +91,16 @@ class::
 
    >>> import urllib.robotparser
    >>> rp = urllib.robotparser.RobotFileParser()
-   >>> rp.set_url("http://www.musi-cal.com/robots.txt";)
+   >>> rp.set_url("http://www.pythontest.net/robots.txt";)
    >>> rp.read()
    >>> rrate = rp.request_rate("*")
    >>> rrate.requests
-   3
+   1
    >>> rrate.seconds
-   20
+   1
    >>> rp.crawl_delay("*")
    6
-   >>> rp.can_fetch("*", 
"http://www.musi-cal.com/cgi-bin/search?city=San+Francisco";)
-   False
-   >>> rp.can_fetch("*", "http://www.musi-cal.com/";)
+   >>> rp.can_fetch("*", "http://www.pythontest.net/";)
    True
+   >>> rp.can_fetch("*", "http://www.pythontest.net/no-robots-here/";)
+   False

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to