An unofficial API wrapper for Y2Mate.com
Project description
An unofficial Python API wrapper for Y2Mate.com
Features
- Fetch video metadata
- Get download links for videos in different formats and qualities
- Search for videos on Y2Mate
Installation
pip install y2mate
Example
import asyncio
from y2mate import Y2MateClient
client = Y2MateClient()
async def main() -> None:
# Search for videos
search_result = await client.search("The Girl I Like Forgot Her Glasses OP")
print(search_result)
# Get video metadata from url
video_metadata = await client.from_url("https://youtu.be/mpWnhkMLIu4?feature=shared")
print(video_metadata)
# Get video download info with download link
download_info = await client.get_download_info(video_metadata.video_id, video_metadata.video_links[0].key)
print(download_info)
asyncio.run(main())
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
y2mate-1.0.0.tar.gz
(3.3 kB
view details)
Built Distribution
File details
Details for the file y2mate-1.0.0.tar.gz
.
File metadata
- Download URL: y2mate-1.0.0.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 13665299bbd4deccbe4b24c69c85755372595364745d3efec2d804844bba89e2 |
|
MD5 | 880fa667253bc224fab31589437d06e3 |
|
BLAKE2b-256 | 4103c0d184c9d4a6dafbdad3662398ded0ea86d8f1ae217965f02f24366afaba |
File details
Details for the file y2mate-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: y2mate-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 217b75a44c431a69a63ad5c715b189ae051eeca8527e952cd06a543933690580 |
|
MD5 | 95ec9c51fa235d5ed1c3736f32d36822 |
|
BLAKE2b-256 | 19ee61feddca3277ea5447df7a509e163a854142f4e6da08a1c264629d97b7bd |