Page

insert_link hentai.Page

A dataclass that bundles related Page properties. See also the documentation for dataclass on python's docs page or self.pages.

Properties

insert_link self.url -> str

The URL of this Page object.

            
                from hentai import Hentai

                doujin = Hentai(177013)
    
                # https://i.nhentai.net/galleries/987560/1.jpg
                # https://i.nhentai.net/galleries/987560/2.jpg
                # ...
                for page in doujin.pages:
                    print(page.url)
            
        
insert_link self.ext -> str

The extension of this Page object.

            
                from hentai import Hentai

                doujin = Hentai(177013)
    
                # .jpg
                # .jpg
                # ...
                for page in doujin.pages:
                    print(page.ext)
            
        
insert_link self.width -> int

The image width of this Page object.

            
                from hentai import Hentai

                doujin = Hentai(177013)
    
                # 1275
                # 1268
                # ...
                for page in doujin.pages:
                    print(page.width)
            
        
insert_link self.height -> int

The image height of this Page object.

            
                from hentai import Hentai

                doujin = Hentai(177013)
    
                # 1844
                # 1844
                # ...
                for page in doujin.pages:
                    print(page.height)
            
        
insert_link self.filename -> Path

The filename of this Page object.

            
                from hentai import Hentai

                doujin = Hentai(177013)
    
                # 1.jpg
                # 2.jpg
                # ...
                for page in doujin.pages:
                    print(page.filename)