Copyseeker
Classes
CopyseekerItem
Bases: BaseSearchItem
Represents a single Copyseeker search result item.
A structured representation of an individual search result from Copyseeker's API.
Attributes:
Name | Type | Description |
---|---|---|
origin |
dict
|
The raw, unprocessed data of the search result. |
url |
str
|
Direct URL to the webpage containing the matched image. |
title |
str
|
Title of the webpage where the image was found. |
thumbnail |
str
|
URL of the main thumbnail image. |
thumbnail_list |
list[str]
|
List of URLs for additional related thumbnail images. |
website_rank |
float
|
Numerical ranking score of the website (0.0 to 1.0). |
Source code in PicImageSearch/model/copyseeker.py
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 |
|
Functions
__init__(data, **kwargs)
Initializes a CopyseekerItem with data from a search result.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
data
|
dict[str, Any]
|
A dictionary containing the search result data. |
required |
Source code in PicImageSearch/model/copyseeker.py
20 21 22 23 24 25 26 |
|
CopyseekerResponse
Bases: BaseSearchResponse[CopyseekerItem]
Encapsulates a complete Copyseeker reverse image search response.
Provides a structured interface to access and analyze the search results and metadata returned by Copyseeker's API.
Attributes:
Name | Type | Description |
---|---|---|
id |
str
|
Unique identifier for this search request. |
image_url |
str
|
URL of the image that was searched. |
best_guess_label |
Optional[str]
|
AI-generated label describing the image content. |
entities |
Optional[str]
|
Detected objects or concepts in the image. |
total |
int
|
Total number of matching results found. |
exif |
dict[str, Any]
|
EXIF metadata extracted from the searched image. |
raw |
list[CopyseekerItem]
|
List of individual search results, each as a CopyseekerItem. |
similar_image_urls |
list[str]
|
URLs of visually similar images found. |
url |
str
|
URL to view these search results on Copyseeker's website. |
Note
- The 'raw' attribute contains the detailed search results, each parsed into a CopyseekerItem object for easier access.
- EXIF data is only available when searching with an actual image file, not when searching with an image URL.
Source code in PicImageSearch/model/copyseeker.py
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 |
|
Functions
__init__(resp_data, resp_url, **kwargs)
Initializes with the response data.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
resp_data
|
dict[str, Any]
|
A dictionary containing the parsed response data from Copyseeker. |
required |
resp_url
|
str
|
URL to the search result page. |
required |
Source code in PicImageSearch/model/copyseeker.py
61 62 63 64 65 66 67 68 |
|