Un serveur permettant de récupérer à quelle manga on s'est arrêté d'une licence. Un script se chargera de récupérer automatiquement les derniers mangas à jour à l'aide du site MangaDex
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

create_manga.py 679 B

1234567891011121314151617181920212223
  1. # coding: utf-8
  2. from mangadex import *
  3. import sqlite3
  4. conn = sqlite3.connect('database.db')
  5. cursor = conn.cursor()
  6. url = "https://mangadex.org/title/31477"
  7. def create_manga(url):
  8. data = {"id" : get_id(url),
  9. "title" : get_title(url),
  10. "author" : get_author(url),
  11. "url" : url,
  12. "chap" : get_last_chap(url)}
  13. print("Id : " + str(data["id"]))
  14. print("Title : " + str(data["title"]))
  15. print("Author : " + str(data["author"]))
  16. print("Link : " + url)
  17. print("Last chap" + str(data["chap"]))
  18. cursor.execute(""" INSERT INTO manga(id, title, author, url, chap) VALUES(:id, :title, :author, :url, :chap)""", data)
  19. conn.commit()