An unofficial Python API wrapper for [Y2Mate.com](https://y2mate.com)
## Features
- Fetch video metadata
- Get download links for videos in different formats and qualities
- Search for videos on Y2Mate
## Installation
```bash
pip install y2mate
```
## Example
```py
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())
```
Raw data
{
"_id": null,
"home_page": "https://github.com/zrekryu/y2mate",
"name": "y2mate",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "y2mate,y2mate-api,youtube",
"author": "Zrekryu",
"author_email": "zrekryu@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/41/03/c0d184c9d4a6dafbdad3662398ded0ea86d8f1ae217965f02f24366afaba/y2mate-1.0.0.tar.gz",
"platform": null,
"description": "An unofficial Python API wrapper for [Y2Mate.com](https://y2mate.com)\n\n## Features\n\n- Fetch video metadata\n- Get download links for videos in different formats and qualities\n- Search for videos on Y2Mate\n\n## Installation\n```bash\npip install y2mate\n```\n\n## Example\n```py\nimport asyncio\n\nfrom y2mate import Y2MateClient\n\nclient = Y2MateClient()\n\nasync def main() -> None:\n # Search for videos\n search_result = await client.search(\"The Girl I Like Forgot Her Glasses OP\")\n print(search_result)\n \n # Get video metadata from url\n video_metadata = await client.from_url(\"https://youtu.be/mpWnhkMLIu4?feature=shared\")\n print(video_metadata)\n \n # Get video download info with download link\n download_info = await client.get_download_info(video_metadata.video_id, video_metadata.video_links[0].key)\n print(download_info)\n\nasyncio.run(main())\n```\n",
"bugtrack_url": null,
"license": "",
"summary": "An unofficial API wrapper for Y2Mate.com",
"version": "1.0.0",
"project_urls": {
"Homepage": "https://github.com/zrekryu/y2mate"
},
"split_keywords": [
"y2mate",
"y2mate-api",
"youtube"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "19ee61feddca3277ea5447df7a509e163a854142f4e6da08a1c264629d97b7bd",
"md5": "95ec9c51fa235d5ed1c3736f32d36822",
"sha256": "217b75a44c431a69a63ad5c715b189ae051eeca8527e952cd06a543933690580"
},
"downloads": -1,
"filename": "y2mate-1.0.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "95ec9c51fa235d5ed1c3736f32d36822",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 3894,
"upload_time": "2023-11-20T14:35:25",
"upload_time_iso_8601": "2023-11-20T14:35:25.247249Z",
"url": "https://files.pythonhosted.org/packages/19/ee/61feddca3277ea5447df7a509e163a854142f4e6da08a1c264629d97b7bd/y2mate-1.0.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "4103c0d184c9d4a6dafbdad3662398ded0ea86d8f1ae217965f02f24366afaba",
"md5": "880fa667253bc224fab31589437d06e3",
"sha256": "13665299bbd4deccbe4b24c69c85755372595364745d3efec2d804844bba89e2"
},
"downloads": -1,
"filename": "y2mate-1.0.0.tar.gz",
"has_sig": false,
"md5_digest": "880fa667253bc224fab31589437d06e3",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 3306,
"upload_time": "2023-11-20T14:35:26",
"upload_time_iso_8601": "2023-11-20T14:35:26.700302Z",
"url": "https://files.pythonhosted.org/packages/41/03/c0d184c9d4a6dafbdad3662398ded0ea86d8f1ae217965f02f24366afaba/y2mate-1.0.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-11-20 14:35:26",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "zrekryu",
"github_project": "y2mate",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [],
"lcname": "y2mate"
}