Browse Source

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

master
TheBidouilleur 2 weeks ago
parent
commit
2265e2113a
1 changed files with 5 additions and 2 deletions
  1. +5
    -2
      update_manga.py

+ 5
- 2
update_manga.py View File

@@ -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…
Cancel
Save