Skip to content
This repository has been archived by the owner on Mar 22, 2024. It is now read-only.

Commit

Permalink
降低一半限速
Browse files Browse the repository at this point in the history
  • Loading branch information
shing-yu committed Oct 24, 2023
1 parent c6ecfab commit 51e4fdb
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/fanqie_batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def download_novels(url, encoding, user_agent, path_choice, folder_path, data_fo
# 遍历每个章节链接
for chapter in chapters:

time.sleep(2)
time.sleep(1)
# 获取章节标题
chapter_title = chapter.find("a").get_text()

Expand Down
2 changes: 1 addition & 1 deletion src/fanqie_chapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def fanqie_c(url, encoding, user_agent, path_choice, start_chapter_id):
# 遍历每个章节链接
for chapter in chapters[start_index:]:

time.sleep(0.5)
time.sleep(0.25)
# 获取章节标题
chapter_title = chapter.find("a").get_text()

Expand Down
2 changes: 1 addition & 1 deletion src/fanqie_debug.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def fanqie_d(url, encoding, user_agent, path_choice, data_folder, start_chapter_
# 遍历每个章节链接
for chapter in chapters[start_index:]:

time.sleep(0.5)
time.sleep(0.25)
# 获取章节标题
chapter_title = chapter.find("a").get_text()
print(f"[DEBUG]正在获取章节:{chapter_title}")
Expand Down
2 changes: 1 addition & 1 deletion src/fanqie_normal.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def fanqie_n(url, encoding, user_agent, path_choice, data_folder, start_chapter_
try:
# 遍历每个章节链接
for chapter in chapters[start_index:]:
time.sleep(0.5)
time.sleep(0.25)
# 获取章节标题
chapter_title = chapter.find("a").get_text()

Expand Down

0 comments on commit 51e4fdb

Please sign in to comment.