Pārlūkot izejas kodu

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

master
TheBidouilleur pirms 2 nedēļām
vecāks
revīzija
2265e2113a
1 mainītis faili ar 5 papildinājumiem un 2 dzēšanām
  1. +5
    -2
      update_manga.py

+ 5
- 2
update_manga.py Parādīt failu

@@ -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


Notiek ielāde…
Atcelt
Saglabāt