瀏覽代碼

La fonction "fetch_all_id" fonctionne et met à jour les chapitres de tout les mangas

master
TheBidouilleur 2 週之前
父節點
當前提交
2265e2113a
共有 1 個檔案被更改,包括 5 行新增2 行删除
  1. +5
    -2
      update_manga.py

+ 5
- 2
update_manga.py 查看文件

@@ -13,8 +13,11 @@ def fetch_all_id():
print("Recuperation des IDs")
cursor.execute("SELECT id FROM manga;")
rows = cursor.fetchall()


print("----- MISE A JOUR DES CHAPITRES -----")
for i in range(len(rows)):
print(rows[i][0])
update_manga(rows[i][0])
print("----- FIN -----")
def update_manga(id):
url = get_url(id)
# On récupère l'URL


Loading…
取消
儲存