aboutsummaryrefslogtreecommitdiff
path: root/henti.py
blob: abaefa057b4498b927b42e19c4802578d9469451 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
from hentai import Hentai
from hentai import Format

class Numbers:
    def title(self):
        title = self.sauce.title(Format.Pretty)
        return title

    def artist(self):
        artist = str(self.sauce.artist).split(', ')[2]
        name = artist[6:-1]  # just the artist's name
        return name

    def Tags(self):
        tags = []
        for tag in self.sauce.tag:
            # get names of tags and put them in a list
            tags.append(tag.name)
        print(tags)






    def __init__(self, number):
        sauce = Hentai(number)
        self.sauce = sauce

        
    
    
#     def info(self): 
        # get hentai title in readable format
#         _title = Numbers.title(self.sauce)
#         _artist = Numbers.artist(self.sauce)
#         _tags = Numbers.tags(self.sauce)
#         sauce = self.sauce
#         r = "{title} ({sauce}) by {artist}\nhttps://nhentai.net/g/{sauce}/"#.format(title=title, artist=artist, sauce=sauce)
#         return r