You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
kmftools/bookscraper/scraper/models/book_state.py

17 lines
409 B

# scraper/models/book_state.py
class Chapter:
"""
Lightweight chapter model used by DownloadController, BookScraper,
and Celery pipelines.
"""
def __init__(self, number: int, title: str, url: str):
self.number = number
self.title = title
self.url = url
def __repr__(self):
return f"Chapter(number={self.number}, title={self.title}, url={self.url})"