missAV_api 1.4.9__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,56 @@
1
+ GNU LESSER GENERAL PUBLIC LICENSE
2
+ Version 3, 29 June 2007
3
+
4
+ Copyright © 2007 Free Software Foundation, Inc. <https://fsf.org/>
5
+
6
+ Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
7
+
8
+ This version of the GNU Lesser General Public License incorporates the terms and conditions of version 3 of the GNU General Public License, supplemented by the additional permissions listed below.
9
+
10
+ 0. Additional Definitions.
11
+ As used herein, “this License” refers to version 3 of the GNU Lesser General Public License, and the “GNU GPL” refers to version 3 of the GNU General Public License.
12
+
13
+ “The Library” refers to a covered work governed by this License, other than an Application or a Combined Work as defined below.
14
+
15
+ An “Application” is any work that makes use of an interface provided by the Library, but which is not otherwise based on the Library. Defining a subclass of a class defined by the Library is deemed a mode of using an interface provided by the Library.
16
+
17
+ A “Combined Work” is a work produced by combining or linking an Application with the Library. The particular version of the Library with which the Combined Work was made is also called the “Linked Version”.
18
+
19
+ The “Minimal Corresponding Source” for a Combined Work means the Corresponding Source for the Combined Work, excluding any source code for portions of the Combined Work that, considered in isolation, are based on the Application, and not on the Linked Version.
20
+
21
+ The “Corresponding Application Code” for a Combined Work means the object code and/or source code for the Application, including any data and utility programs needed for reproducing the Combined Work from the Application, but excluding the System Libraries of the Combined Work.
22
+
23
+ 1. Exception to Section 3 of the GNU GPL.
24
+ You may convey a covered work under sections 3 and 4 of this License without being bound by section 3 of the GNU GPL.
25
+
26
+ 2. Conveying Modified Versions.
27
+ If you modify a copy of the Library, and, in your modifications, a facility refers to a function or data to be supplied by an Application that uses the facility (other than as an argument passed when the facility is invoked), then you may convey a copy of the modified version:
28
+
29
+ a) under this License, provided that you make a good faith effort to ensure that, in the event an Application does not supply the function or data, the facility still operates, and performs whatever part of its purpose remains meaningful, or
30
+ b) under the GNU GPL, with none of the additional permissions of this License applicable to that copy.
31
+ 3. Object Code Incorporating Material from Library Header Files.
32
+ The object code form of an Application may incorporate material from a header file that is part of the Library. You may convey such object code under terms of your choice, provided that, if the incorporated material is not limited to numerical parameters, data structure layouts and accessors, or small macros, inline functions and templates (ten or fewer lines in length), you do both of the following:
33
+
34
+ a) Give prominent notice with each copy of the object code that the Library is used in it and that the Library and its use are covered by this License.
35
+ b) Accompany the object code with a copy of the GNU GPL and this license document.
36
+ 4. Combined Works.
37
+ You may convey a Combined Work under terms of your choice that, taken together, effectively do not restrict modification of the portions of the Library contained in the Combined Work and reverse engineering for debugging such modifications, if you also do each of the following:
38
+
39
+ a) Give prominent notice with each copy of the Combined Work that the Library is used in it and that the Library and its use are covered by this License.
40
+ b) Accompany the Combined Work with a copy of the GNU GPL and this license document.
41
+ c) For a Combined Work that displays copyright notices during execution, include the copyright notice for the Library among these notices, as well as a reference directing the user to the copies of the GNU GPL and this license document.
42
+ d) Do one of the following:
43
+ 0) Convey the Minimal Corresponding Source under the terms of this License, and the Corresponding Application Code in a form suitable for, and under terms that permit, the user to recombine or relink the Application with a modified version of the Linked Version to produce a modified Combined Work, in the manner specified by section 6 of the GNU GPL for conveying Corresponding Source.
44
+ 1) Use a suitable shared library mechanism for linking with the Library. A suitable mechanism is one that (a) uses at run time a copy of the Library already present on the user's computer system, and (b) will operate properly with a modified version of the Library that is interface-compatible with the Linked Version.
45
+ e) Provide Installation Information, but only if you would otherwise be required to provide such information under section 6 of the GNU GPL, and only to the extent that such information is necessary to install and execute a modified version of the Combined Work produced by recombining or relinking the Application with a modified version of the Linked Version. (If you use option 4d0, the Installation Information must accompany the Minimal Corresponding Source and Corresponding Application Code. If you use option 4d1, you must provide the Installation Information in the manner specified by section 6 of the GNU GPL for conveying Corresponding Source.)
46
+ 5. Combined Libraries.
47
+ You may place library facilities that are a work based on the Library side by side in a single library together with other library facilities that are not Applications and are not covered by this License, and convey such a combined library under terms of your choice, if you do both of the following:
48
+
49
+ a) Accompany the combined library with a copy of the same work based on the Library, uncombined with any other library facilities, conveyed under the terms of this License.
50
+ b) Give prominent notice with the combined library that part of it is a work based on the Library, and explaining where to find the accompanying uncombined form of the same work.
51
+ 6. Revised Versions of the GNU Lesser General Public License.
52
+ The Free Software Foundation may publish revised and/or new versions of the GNU Lesser General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.
53
+
54
+ Each version is given a distinguishing version number. If the Library as you received it specifies that a certain numbered version of the GNU Lesser General Public License “or any later version” applies to it, you have the option of following the terms and conditions either of that published version or of any later version published by the Free Software Foundation. If the Library as you received it does not specify a version number of the GNU Lesser General Public License, you may choose any version of the GNU Lesser General Public License ever published by the Free Software Foundation.
55
+
56
+ If the Library as you received it specifies that a proxy can decide whether future versions of the GNU Lesser General Public License shall apply, that proxy's public statement of acceptance of any version is permanent authorization for you to choose that version for the Library.
@@ -0,0 +1,94 @@
1
+ Metadata-Version: 2.4
2
+ Name: missAV_api
3
+ Version: 1.4.9
4
+ Summary: A Python API for the Porn Site missav.ws
5
+ Author: Johannes Habel
6
+ Author-email: Johannes Habel <EchterAlsFake@proton.me>
7
+ License-Expression: LGPL-3.0-only
8
+ License-File: LICENSE
9
+ Classifier: License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)
10
+ Classifier: Programming Language :: Python
11
+ Requires-Dist: bs4
12
+ Requires-Dist: eaf-base-api
13
+ Requires-Dist: m3u8
14
+ Requires-Dist: av ; python_full_version >= '3.10' and extra == 'av'
15
+ Requires-Dist: lxml ; extra == 'full'
16
+ Requires-Dist: httpx[http2] ; extra == 'full'
17
+ Requires-Dist: httpx[socks] ; extra == 'full'
18
+ Requires-Python: >=3.9
19
+ Project-URL: Homepage, https://github.com/EchterAlsFake/missAV_api
20
+ Provides-Extra: av
21
+ Provides-Extra: full
22
+ Description-Content-Type: text/markdown
23
+
24
+ <h1 align="center">missAV API</h1>
25
+
26
+ <div align="center">
27
+ <a href="https://pepy.tech/project/missAV_api"><img src="https://static.pepy.tech/badge/missAV_api" alt="Downloads"></a>
28
+ <a href="https://github.com/EchterAlsFake/missAV_api/workflows/CodeQL/badge.svg" alt="CodeQL Analysis"></a>
29
+ <a href="https://echteralsfake.me/ci/missAV_api/badge.svg"><img src="https://echteralsfake.me/ci/missAV_api/badge.svg" alt="Sync API Tests"/></a>
30
+ </div>
31
+
32
+ # Disclaimer
33
+ > [!IMPORTANT]
34
+ > This is an unofficial and unaffiliated project. Please read the full disclaimer before use:
35
+ > **[DISCLAIMER.md](./DISCLAIMER.md)**
36
+ >
37
+ > By using this project you agree to comply with the target site’s rules, copyright/licensing requirements,
38
+ > and applicable laws. Do not use it to bypass access controls or scrape at disruptive rates.
39
+
40
+ # Features
41
+ - Fetch videos + metadata
42
+ - Download videos
43
+ - Search for videos
44
+ - Built-in caching
45
+ - Easy interface
46
+ - Great type hinting
47
+ - Proxy support
48
+ - Very customizable
49
+
50
+ # Supported Platforms
51
+ This API has been tested and confirmed working on:
52
+
53
+ - Windows 11 (x64)
54
+ - macOS Sequoia (x86_64)
55
+ - Linux (Arch) (x86_64)
56
+ - Android 16 (aarch64)
57
+
58
+
59
+ # Quickstart
60
+
61
+ ### Have a look at the [Documentation](https://github.com/EchterAlsFake/API_Docs/blob/master/Porn_APIs/missAV.md) for more details
62
+
63
+ - Install the library with `pip install missAV_api`
64
+
65
+
66
+ ```python
67
+ from missav_api import Client
68
+ # Initialize a Client object
69
+ client = Client()
70
+
71
+ # Fetch a video
72
+ video_object = client.get_video("<insert_url_here>")
73
+
74
+ # Information from Video objects
75
+ print(video_object.title)
76
+ # Download the video
77
+
78
+ video_object.download(downloader="threaded", quality="best", path="your_output_path + filename")
79
+
80
+ # SEE DOCUMENTATION FOR MORE
81
+ ```
82
+
83
+ # Changelog
84
+ See [Changelog](https://github.com/EchterAlsFake/missAV_api/blob/master/README/Changelog.md) for more details.
85
+
86
+ # Contribution
87
+ Do you see any issues or having some feature requests? Simply open an Issue or talk
88
+ in the discussions.
89
+
90
+ Pull requests are also welcome.
91
+
92
+ # License
93
+ Licensed under the [LGPLv3](https://www.gnu.org/licenses/lgpl-3.0.en.html) License
94
+ <br>Copyright (C) 2024-2026 Johannes Habel
@@ -0,0 +1,71 @@
1
+ <h1 align="center">missAV API</h1>
2
+
3
+ <div align="center">
4
+ <a href="https://pepy.tech/project/missAV_api"><img src="https://static.pepy.tech/badge/missAV_api" alt="Downloads"></a>
5
+ <a href="https://github.com/EchterAlsFake/missAV_api/workflows/CodeQL/badge.svg" alt="CodeQL Analysis"></a>
6
+ <a href="https://echteralsfake.me/ci/missAV_api/badge.svg"><img src="https://echteralsfake.me/ci/missAV_api/badge.svg" alt="Sync API Tests"/></a>
7
+ </div>
8
+
9
+ # Disclaimer
10
+ > [!IMPORTANT]
11
+ > This is an unofficial and unaffiliated project. Please read the full disclaimer before use:
12
+ > **[DISCLAIMER.md](./DISCLAIMER.md)**
13
+ >
14
+ > By using this project you agree to comply with the target site’s rules, copyright/licensing requirements,
15
+ > and applicable laws. Do not use it to bypass access controls or scrape at disruptive rates.
16
+
17
+ # Features
18
+ - Fetch videos + metadata
19
+ - Download videos
20
+ - Search for videos
21
+ - Built-in caching
22
+ - Easy interface
23
+ - Great type hinting
24
+ - Proxy support
25
+ - Very customizable
26
+
27
+ # Supported Platforms
28
+ This API has been tested and confirmed working on:
29
+
30
+ - Windows 11 (x64)
31
+ - macOS Sequoia (x86_64)
32
+ - Linux (Arch) (x86_64)
33
+ - Android 16 (aarch64)
34
+
35
+
36
+ # Quickstart
37
+
38
+ ### Have a look at the [Documentation](https://github.com/EchterAlsFake/API_Docs/blob/master/Porn_APIs/missAV.md) for more details
39
+
40
+ - Install the library with `pip install missAV_api`
41
+
42
+
43
+ ```python
44
+ from missav_api import Client
45
+ # Initialize a Client object
46
+ client = Client()
47
+
48
+ # Fetch a video
49
+ video_object = client.get_video("<insert_url_here>")
50
+
51
+ # Information from Video objects
52
+ print(video_object.title)
53
+ # Download the video
54
+
55
+ video_object.download(downloader="threaded", quality="best", path="your_output_path + filename")
56
+
57
+ # SEE DOCUMENTATION FOR MORE
58
+ ```
59
+
60
+ # Changelog
61
+ See [Changelog](https://github.com/EchterAlsFake/missAV_api/blob/master/README/Changelog.md) for more details.
62
+
63
+ # Contribution
64
+ Do you see any issues or having some feature requests? Simply open an Issue or talk
65
+ in the discussions.
66
+
67
+ Pull requests are also welcome.
68
+
69
+ # License
70
+ Licensed under the [LGPLv3](https://www.gnu.org/licenses/lgpl-3.0.en.html) License
71
+ <br>Copyright (C) 2024-2026 Johannes Habel
@@ -0,0 +1,4 @@
1
+ __all__ = ["Client", "Callback", "Video"]
2
+
3
+ from missav_api.missav_api import Client, Video
4
+ from base_api.modules.progress_bars import Callback
@@ -0,0 +1,245 @@
1
+ import os
2
+ import logging
3
+ import threading
4
+ import time
5
+ import hmac
6
+ import hashlib
7
+
8
+ from base_api import BaseCore
9
+ from bs4 import BeautifulSoup
10
+ from urllib.parse import quote
11
+ from functools import cached_property
12
+ from typing import Optional, Generator, List
13
+ from base_api.base import setup_logger, Helper
14
+ from base_api.modules.config import RuntimeConfig
15
+ from concurrent.futures import ThreadPoolExecutor, as_completed
16
+
17
+ BASE_HOST = "client-rapi-missav.recombee.com"
18
+ DATABASE_ID = "missav-default"
19
+ PUBLIC_TOKEN = "Ikkg568nlM51RHvldlPvc2GzZPE9R4XGzaH9Qj4zK9npbbbTly1gj9K4mgRn0QlV"
20
+ # You can change these if you want
21
+
22
+ try:
23
+ import lxml
24
+ parser = lxml
25
+
26
+ except (ModuleNotFoundError, ImportError):
27
+ parser = "html.parser"
28
+
29
+ try:
30
+ from modules.consts import *
31
+
32
+ except (ModuleNotFoundError, ImportError):
33
+ from .modules.consts import *
34
+
35
+
36
+ def _sign_path(path: str, token: str) -> str:
37
+ """
38
+ Reproduce _signUrl(path) from the JS:
39
+ 1) build "/{databaseId}{path}?frontend_timestamp=UNIX"
40
+ 2) HMAC-SHA1 that string with the public token (text)
41
+ 3) append &frontend_sign=hexdigest
42
+ """
43
+ ts = int(time.time())
44
+ unsigned = f"/{DATABASE_ID}{path}"
45
+ if "?" in unsigned:
46
+ unsigned += f"&frontend_timestamp={ts}"
47
+ else:
48
+ unsigned += f"?frontend_timestamp={ts}"
49
+ signature = hmac.new(token.encode("utf-8"),
50
+ unsigned.encode("utf-8"),
51
+ hashlib.sha1).hexdigest()
52
+ return unsigned + f"&frontend_sign={signature}"
53
+
54
+ def _post(core, path: str, json_body: dict, timeout=9):
55
+ signed_path = _sign_path(path, PUBLIC_TOKEN)
56
+ url = f"https://{BASE_HOST}{signed_path}"
57
+ headers = {
58
+ "Accept": "application/json",
59
+ "Content-Type": "application/json",
60
+ }
61
+ resp = core.fetch(url, json=json_body, headers=headers, timeout=timeout, method="POST", get_response=True)
62
+ return resp.json()
63
+
64
+
65
+ class ErrorVideo:
66
+ """Drop-in-ish stand-in that raises when accessed."""
67
+ def __init__(self, url: str, err: Exception):
68
+ self.url = url
69
+ self._err = err
70
+
71
+ def __getattr__(self, _):
72
+ # Any attribute access surfaces the original error
73
+ raise self._err
74
+
75
+
76
+ class Video:
77
+ def __init__(self, url: str, core: Optional[BaseCore] = None) -> None:
78
+ self.url = url
79
+ self.core = core
80
+ self.core.enable_logging(level=logging.DEBUG)
81
+ self.logger = setup_logger(name="MISSAV API - [Video]", log_file=None, level=logging.CRITICAL)
82
+ self.content = self.core.fetch(url)
83
+ self.soup = BeautifulSoup(self.content, parser)
84
+ _meta_div = self.soup.find("div", class_="space-y-2")
85
+ self.meta_divs = _meta_div.find_all("div", class_="text-secondary")
86
+
87
+ def enable_logging(self, level, log_file: str = None):
88
+ self.logger = setup_logger(name="MISSAV API - [Video]", log_file=log_file, level=level)
89
+
90
+ @cached_property
91
+ def title(self) -> str:
92
+ """Returns the title of the video. Language depends on the URL language"""
93
+ return self.soup.find("h1", class_="text-base lg:text-lg text-nord6").text.strip()
94
+
95
+ @cached_property
96
+ def publish_date(self) -> str:
97
+ """Returns the publish date of the video"""
98
+ return self.meta_divs[0].find("time", class_="font-medium").text.strip()
99
+
100
+ @cached_property
101
+ def video_code(self) -> str:
102
+ """Returns the specific video code"""
103
+ return self.meta_divs[1].find("span", class_="font-medium").text.strip()
104
+
105
+ @cached_property
106
+ def title_original_japanese(self) -> str:
107
+ """Returns the original title of the video"""
108
+ try:
109
+ return self.meta_divs[2].find("span", class_="font-medium").text.strip()
110
+
111
+ except IndexError:
112
+ return ""
113
+
114
+ @cached_property
115
+ def genres(self) -> List[str]:
116
+ """Returns the genres of the video"""
117
+ try:
118
+ genres = []
119
+ a_tags = self.meta_divs[3].find_all("a")
120
+ for a_tag in a_tags:
121
+ genres.append(a_tag.text.strip())
122
+
123
+ return genres
124
+
125
+ except IndexError:
126
+ return []
127
+
128
+
129
+ @cached_property
130
+ def series(self) -> str:
131
+ """Returns the series of the video"""
132
+ try:
133
+ return self.meta_divs[4].find("a").text.strip()
134
+
135
+ except IndexError:
136
+ return ""
137
+
138
+ @cached_property
139
+ def manufacturer(self) -> str:
140
+ """Returns the manufacturer of the video"""
141
+ try:
142
+ return self.meta_divs[5].find("a").text.strip()
143
+
144
+ except IndexError:
145
+ return ""
146
+
147
+ @cached_property
148
+ def etiquette(self) -> str:
149
+ """Returns the etiquette of the video"""
150
+ try:
151
+ return self.meta_divs[6].find("a").text.strip()
152
+
153
+ except IndexError:
154
+ return ""
155
+
156
+ @cached_property
157
+ def m3u8_base_url(self) -> str:
158
+ """Returns the m3u8 base URL (master playlist)"""
159
+ javascript_content = regex_m3u8_js.search(self.content).group(1)
160
+ url_parts = javascript_content.split("|")[::-1]
161
+ self.logger.debug(f"Constructing HLS URL from: {url_parts}")
162
+ url = f"{url_parts[1]}://{url_parts[2]}.{url_parts[3]}/{url_parts[4]}-{url_parts[5]}-{url_parts[6]}-{url_parts[7]}-{url_parts[8]}/playlist.m3u8"
163
+ self.logger.debug(f"Final URL: {url}")
164
+ return url
165
+
166
+ @cached_property
167
+ def thumbnail(self) -> str:
168
+ """Returns the main video thumbnail"""
169
+ return f"{regex_thumbnail.search(self.content).group(1)}cover-n.jpg"
170
+
171
+ def get_segments(self, quality: str) -> list:
172
+ """Returns the list of HLS segments for a given quality"""
173
+ return self.core.get_segments(quality=quality, m3u8_url_master=self.m3u8_base_url)
174
+
175
+ def download(self, quality, path="./", callback=None, no_title=False, remux: bool = False,
176
+ callback_remux=None, start_segment: int = 0, stop_event: Optional[threading.Event] = None,
177
+ segment_state_path: Optional[str] = None, segment_dir: Optional[str] = None,
178
+ return_report: bool = False, cleanup_on_stop: bool = True, keep_segment_dir: bool = False
179
+ ) -> bool:
180
+ """
181
+ :param callback:
182
+ :param quality:
183
+ :param path:
184
+ :param no_title:
185
+ :param remux:
186
+ :param callback_remux:
187
+ :param start_segment:
188
+ :param stop_event:
189
+ :param segment_state_path:
190
+ :param segment_dir:
191
+ :param return_report:
192
+ :param cleanup_on_stop:
193
+ :param keep_segment_dir:
194
+ :return:
195
+ """
196
+ if not no_title:
197
+ path = os.path.join(path, f"{self.title}.mp4")
198
+
199
+ return self.core.download(video=self, quality=quality, path=path, callback=callback, remux=remux,
200
+ callback_remux=callback_remux, start_segment=start_segment, stop_event=stop_event,
201
+ segment_state_path=segment_state_path, segment_dir=segment_dir, return_report=return_report,
202
+ cleanup_on_stop=cleanup_on_stop, keep_segment_dir=keep_segment_dir)
203
+
204
+
205
+ class Client(Helper):
206
+ def __init__(self, core: Optional[BaseCore] = None):
207
+ super(Client, self).__init__(core=core, video=Video)
208
+ self.core = core or BaseCore(config=RuntimeConfig())
209
+ self.core.config.use_http2 = False # Missav doesn't support http2
210
+ self.core.initialize_session()
211
+ self.core.session.headers.update(headers)
212
+
213
+ def get_video(self, url: str) -> Video:
214
+ """Returns the video object"""
215
+ return Video(url, core=self.core)
216
+
217
+ def search(self, query: str, video_count: int = 50, max_workers: int = None) -> Generator[Video, None, None]:
218
+ """
219
+ Mirrors: POST /search/users/{userId}/items/
220
+ Body fields follow the snippet’s Recombee client (searchQuery, count, scenario, filter, booster, logic, etc.)
221
+ """
222
+ return_properties = True
223
+ user_id = "anonymous"
224
+
225
+ path = f"/search/users/{quote(user_id, safe='')}/items/"
226
+ body = {
227
+ "searchQuery": query,
228
+ "count": video_count,
229
+ "cascadeCreate": True,
230
+ "returnProperties": return_properties,
231
+ }
232
+
233
+ body = {k: v for k, v in body.items() if v is not None}
234
+ data = _post(path=path, json_body=body, timeout=9, core=self.core)
235
+ videos = data.get("recomms", [])
236
+ video_urls = []
237
+ for video in videos:
238
+ video_urls.append(f"https://missav.ws/en/{video['id']}")
239
+
240
+ max_workers = max_workers or self.core.config.videos_concurrency
241
+
242
+ with ThreadPoolExecutor(max_workers=max_workers) as executor:
243
+ futures = [executor.submit(self._make_video_safe, url) for url in video_urls]
244
+ for fut in as_completed(futures):
245
+ yield fut.result()
File without changes
@@ -0,0 +1,16 @@
1
+ import re
2
+
3
+ headers = {
4
+ "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36",
5
+ "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8",
6
+ "Accept-Encoding": "gzip, deflate, br, zstd",
7
+ "Cache-Control": "no-cache",
8
+ }
9
+
10
+
11
+
12
+ regex_title = re.compile(r'<h1 class="text-base lg:text-lg text-nord6">(.*?)</h1>')
13
+ regex_video_code = re.compile(r'<span class="font-medium">(.*?)</span>')
14
+ regex_publish_date = re.compile(r'class="font-medium">(.*?)</time>')
15
+ regex_thumbnail = re.compile(r'og:image" content="(.*?)cover-n.jpg')
16
+ regex_m3u8_js = re.compile(r"'m3u8(.*?)video")
File without changes
@@ -0,0 +1,18 @@
1
+ from ..missav_api import Client
2
+
3
+
4
+ client = Client()
5
+ video = client.get_video("https://missav.ws/dm13/de/fc2-ppv-2777644")
6
+
7
+ def test_video_attributes():
8
+ assert isinstance(video.title, str)
9
+ assert isinstance(video.publish_date, str)
10
+ assert isinstance(video.m3u8_base_url, str)
11
+ assert isinstance(video.video_code, str)
12
+ assert isinstance(video.thumbnail, str)
13
+
14
+ def test_search():
15
+ search = client.search("stepdaughter", video_count=10)
16
+ for video in search:
17
+ assert isinstance(video.title, str)
18
+
@@ -0,0 +1,39 @@
1
+ [build-system]
2
+ requires = ["uv_build>=0.9.18,<0.10.0"]
3
+ build-backend = "uv_build"
4
+
5
+ [project]
6
+ name = "missAV_api"
7
+ version = "1.4.9"
8
+ description = "A Python API for the Porn Site missav.ws"
9
+ readme = { file = "README.md", content-type = "text/markdown" }
10
+ requires-python = ">=3.9"
11
+ license = "LGPL-3.0-only"
12
+ license-files = ["LICENSE"]
13
+ authors = [
14
+ { name = "Johannes Habel", email = "EchterAlsFake@proton.me" }
15
+ ]
16
+ dependencies = [
17
+ "bs4",
18
+ "eaf_base_api",
19
+ "m3u8",
20
+ ]
21
+
22
+ classifiers = [
23
+ "License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)",
24
+ "Programming Language :: Python",
25
+ ]
26
+
27
+ [project.optional-dependencies]
28
+ av = ["av; python_version >= '3.10'"]
29
+ full = ["lxml", "httpx[http2]", "httpx[socks]"] # H2 for HTTP 2.0 support, LXML for faster parsing speed, though optional :)
30
+
31
+ [project.urls]
32
+ Homepage = "https://github.com/EchterAlsFake/missAV_api"
33
+
34
+ [tool.setuptools]
35
+ packages = { find = {} }
36
+
37
+ [tool.uv.build-backend]
38
+ module-name = "missav_api"
39
+ module-root = ""