From 04ecea043db5b57a029ce3b30c57895f02aa66a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E5=91=98=E5=B0=8F=E5=A2=A8?= Date: Thu, 9 Jan 2025 01:59:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md=EF=BC=9A=20LeetC?= =?UTF-8?q?ode=20=E4=B8=BB=E7=AB=99=E6=B7=BB=E5=8A=A0=E4=BA=86=20Cloudflar?= =?UTF-8?q?e=20=E5=8F=8D=E7=88=AC=E8=99=AB=E6=9C=BA=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 6 ++++++ get.bat | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 340f3788..01841553 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,12 @@ 使用 Python 脚本分批将力扣(`leetcode.com` 和 `leetcode-cn.com`)上面的题目保存下来,方便没有网的时候进行学习。(仅包含可以在网页上直接打开的公开题目,不包含 VIP 题目) +> 2025.01.09 更新 +> +> LeetCode 主站添加了 Cloudflare 反爬虫机制,**目前 leetcode.py 脚本无法正常获取题目数据**。为保证其平台版权,此仓库无绕过其反爬虫机制的相关计划。相关脚本保留,但不再更新。 +> +> (力扣中国站点不受此影响,**leetcode-cn.py 脚本依然可用**) + ### 仓库目录结构 diff --git a/get.bat b/get.bat index b7f758f8..43ff8af4 100644 --- a/get.bat +++ b/get.bat @@ -2,7 +2,7 @@ git checkout master git pull git count-objects -vH -python leetcode.py +:: python leetcode.py python leetcode-cn.py git status