Skip to content

zrekryu/y2mate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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())

About

An unofficial Python API wrapper for Y2Mate.com

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages