蔵書管理システムスマホ版
# book_manager_simple.py (OCR/バーコード機能なし版) import tkinter as tk from tkinter import ttk, messagebox, scrolledtext, filedialog import sqlite3 import requests from bs4 import BeautifulSoup from PIL import Image, ImageTk import os from datetime import datetime class BookDatabase: """SQLiteデータベース管理クラス""" def __init__(self, db_path="book_manager.db"): self.db_path = db_path self.init_database() def get_connection(self): conn = sqlite3.connect(self.db_path) conn.row_factory = sqlite3.Row return conn def init_database(self): conn = self.get_connection() cur = conn.cursor() cur.execute(""" CREATE TABLE IF NOT EXISTS books ( id INTEGER PRIMARY KEY AUTOINCREMENT, isbn TEXT UNIQUE, title TEXT, image_path TEXT, amazon_ra...