Skip to content

Commit

Permalink
Merge pull request #7 from xing-yv/hotfix-#6
Browse files Browse the repository at this point in the history
fix: #6 修改检测语句
  • Loading branch information
shing-yu authored Nov 26, 2023
2 parents 06330fc + 24c28f9 commit 29e2b16
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/qimao_batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ def qimao_b(encoding, path_choice, data_folder):
print("urls.txt文件为空")
return
else:
# 检查每行是否包含"/page/",并且不是空行
# 检查每行是否包含"/shuku/",并且不是空行
for line in lines:
line = line.strip()
if line and "/page/" not in line:
if line and "/shuku/" not in line:
print(f"语法错误:第{line}行")
return "file syntax is incorrect"

Expand Down

0 comments on commit 29e2b16

Please sign in to comment.