File tree Expand file tree Collapse file tree 2 files changed +18
-3
lines changed
Expand file tree Collapse file tree 2 files changed +18
-3
lines changed Original file line number Diff line number Diff line change 1- {"translation" : " 99.91%" , "updated_at" : " 2026-02-05T16:08:29Z " }
1+ {"translation" : " 99.91%" , "updated_at" : " 2026-02-06T13:19:37Z " }
Original file line number Diff line number Diff line change 55#
66# Translators:
77# python-doc bot, 2025
8- # Freesand Leo <yuqinju@163.com>, 2025
8+ # Freesand Leo <yuqinju@163.com>, 2026
99#
1010#, fuzzy
1111msgid ""
@@ -14,7 +14,7 @@ msgstr ""
1414"Report-Msgid-Bugs-To : \n "
1515"POT-Creation-Date : 2026-02-05 15:30+0000\n "
1616"PO-Revision-Date : 2025-09-15 01:05+0000\n "
17- "Last-Translator : Freesand Leo <yuqinju@163.com>, 2025 \n "
17+ "Last-Translator : Freesand Leo <yuqinju@163.com>, 2026 \n "
1818"Language-Team : Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n "
1919"MIME-Version : 1.0\n "
2020"Content-Type : text/plain; charset=UTF-8\n "
@@ -134,6 +134,21 @@ msgid ""
134134">>> rp.can_fetch(\" *\" , \" http://www.pythontest.net/no-robots-here/\" )\n"
135135"False"
136136msgstr ""
137+ ">>> import urllib.robotparser\n"
138+ ">>> rp = urllib.robotparser.RobotFileParser()\n"
139+ ">>> rp.set_url(\" http://www.pythontest.net/robots.txt\" )\n"
140+ ">>> rp.read()\n"
141+ ">>> rrate = rp.request_rate(\" *\" )\n"
142+ ">>> rrate.requests\n"
143+ "1\n"
144+ ">>> rrate.seconds\n"
145+ "1\n"
146+ ">>> rp.crawl_delay(\" *\" )\n"
147+ "6\n"
148+ ">>> rp.can_fetch(\" *\" , \" http://www.pythontest.net/\" )\n"
149+ "True\n"
150+ ">>> rp.can_fetch(\" *\" , \" http://www.pythontest.net/no-robots-here/\" )\n"
151+ "False"
137152
138153#: ../../library/urllib.robotparser.rst:12
139154msgid "WWW"
You can’t perform that action at this time.
0 commit comments