EHentai
Classes
EHentaiItem
Bases: BaseSearchItem
Represents a single e-hentai gallery item from search results.
Attributes:
Name | Type | Description |
---|---|---|
origin |
PyQuery
|
The raw PyQuery data of the search result item. |
thumbnail |
str
|
URL of the gallery's thumbnail image. |
url |
str
|
Direct URL to the gallery page. |
title |
str
|
Title of the gallery. |
type |
str
|
Category/type of the gallery (e.g., 'Doujinshi', 'Manga', etc.). |
date |
str
|
Upload date of the gallery. |
tags |
list[str]
|
List of tags associated with the gallery. |
Source code in PicImageSearch/model/ehentai.py
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 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 |
|
Functions
__init__(data, **kwargs)
Initializes an EHentaiItem with data from a search result.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
data
|
PyQuery
|
A PyQuery instance containing the search result item's data. |
required |
Source code in PicImageSearch/model/ehentai.py
22 23 24 25 26 27 28 |
|
EHentaiResponse
Bases: BaseSearchResponse[EHentaiItem]
Represents the complete response from an e-hentai reverse image search.
This class processes and organizes the search results from e-hentai, handling both filtered and unfiltered results in different HTML layouts.
Attributes:
Name | Type | Description |
---|---|---|
origin |
PyQuery
|
The raw PyQuery data of the entire response. |
raw |
list[EHentaiItem]
|
List of parsed gallery items from the search. |
url |
str
|
URL of the search results page. |
Source code in PicImageSearch/model/ehentai.py
75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 |
|
Functions
__init__(resp_data, resp_url, **kwargs)
Initializes with the response text and URL.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
resp_data
|
str
|
The text of the response. |
required |
resp_url
|
str
|
URL to the search result page. |
required |
Source code in PicImageSearch/model/ehentai.py
87 88 89 90 91 92 93 94 |
|