# -*- coding: utf-8 -*-
# Copyright 2025 Mike Fährmann
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
"""Extractors for https://ahottie.top/"""
from .common import Extractor, GalleryExtractor, Message
from .. import text
BASE_PATTERN = r"(?:https?://)?(?:www\.)?ahottie\.top"
class AhottieExtractor(Extractor):
"""Base class for ahottie extractors"""
category = "ahottie"
root = "https://ahottie.top"
def items(self):
for album in self.albums():
yield Message.Queue, album["url"], album
def _pagination(self, url, params):
params["page"] = text.parse_int(params.get("page"), 1)
while True:
page = self.request(url, params=params).text
for album in text.extract_iter(
page, '