From: kovan <217326+kovan@users.noreply.github.com> Date: Wed, 4 Feb 2026 08:45:15 +0000 (+0100) Subject: gh-141444: Replace dead URL in urllib.robotparser example (GH-144443) X-Git-Tag: v3.15.0a6~80 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=34e5a63f145585cbeb09f21e9453192d9b7c410c;p=thirdparty%2FPython%2Fcpython.git gh-141444: Replace dead URL in urllib.robotparser example (GH-144443) Co-authored-by: Claude Opus 4.5 --- diff --git a/Doc/library/urllib.robotparser.rst b/Doc/library/urllib.robotparser.rst index 674f646c633b..ba719ae084e7 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