Tineye
Classes
Tineye
Bases: BaseSearchEngine[TineyeResponse]
API client for the Tineye reverse image search engine.
Tineye is a reverse image search engine that allows you to find where an image appears on the web. This client provides methods for searching by image URL or by uploading a local image file, and retrieving matching images along with their domains and counts.
Attributes:
Name | Type | Description |
---|---|---|
base_url |
str
|
The base URL for Tineye searches. Defaults to "https://tineye.com". |
Source code in PicImageSearch/engines/tineye.py
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 73 74 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 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 |
|
Functions
__init__(base_url='https://tineye.com', **request_kwargs)
Initializes a Tineye API client.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
base_url
|
str
|
The base URL for Tineye searches. |
'https://tineye.com'
|
**request_kwargs
|
Any
|
Additional keyword arguments passed to the underlying network client. |
{}
|
Source code in PicImageSearch/engines/tineye.py
22 23 24 25 26 27 28 29 |
|
next_page(resp)
async
Navigates to the next page of Tineye search results.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
resp
|
TineyeResponse
|
The current |
required |
Returns:
Type | Description |
---|---|
Optional[TineyeResponse]
|
Optional[TineyeResponse]: A |
Source code in PicImageSearch/engines/tineye.py
98 99 100 101 102 103 104 105 106 107 |
|
pre_page(resp)
async
Navigates to the previous page of Tineye search results.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
resp
|
TineyeResponse
|
The current |
required |
Returns:
Type | Description |
---|---|
Optional[TineyeResponse]
|
Optional[TineyeResponse]: A |
Source code in PicImageSearch/engines/tineye.py
86 87 88 89 90 91 92 93 94 95 96 |
|
search(url=None, file=None, show_unavailable_domains=False, domain='', sort='score', order='desc', tags='', **kwargs)
async
Performs a reverse image search on Tineye.
Searches for matching images on the web using either an image URL or a local image file. After the initial search, retrieves domain information for the matched images.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
url
|
Optional[str]
|
The URL of the image to search for. |
None
|
file
|
Union[str, bytes, Path, None]
|
The local path to the image file to search for. |
None
|
show_unavailable_domains
|
bool
|
Whether to include results from unavailable domains. Defaults to False. |
False
|
domain
|
str
|
Filter results to only include matches from this domain (only one domain is allowed). Defaults to "". |
''
|
sort
|
str
|
The sorting criteria for results. Can be "size", "score", or "crawl_date".
Defaults to "score".
- "score" (with |
'score'
|
order
|
str
|
The sorting order. Can be "asc" (ascending) or "desc" (descending). Defaults to "desc". |
'desc'
|
tags
|
str
|
Comma-separated tags to filter results. For example, "stock,collection". Defaults to "". |
''
|
**kwargs
|
Any
|
Additional keyword arguments passed to the underlying network client. |
{}
|
Returns:
Name | Type | Description |
---|---|---|
TineyeResponse |
TineyeResponse
|
A |
Raises:
Type | Description |
---|---|
ValueError
|
If neither |
Note
- Only one of
url
orfile
should be provided
Source code in PicImageSearch/engines/tineye.py
109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 |
|