Giter Site home page Giter Site logo

y2sharp's Introduction

ARCHIVED!

Due to Y2Mate transferring to cloudflare, this app isn't able to anymore retrive the information needed without solving the cloudflare challenge. I Recommend transeferring to Youtube-dl based download solution like https://github.com/Bluegrams/YoutubeDLSharp . I also recomend the youtube url parser in my tool repo https://github.com/ArttuKuikka/Tools/blob/master/Program.cs

Y2Sharp

logo

Fastest Youtube downloader api for C# using Y2Mate.com

Created because i found all other youtube downloader apis were too slow for my needs so i decided to create my own using the y2mate.com website.

Sample code

await Y2Sharp.Youtube.Video.GetInfo("videoid !!change this to your video id!!");

var video = new Y2Sharp.Youtube.Video();

await video.DownloadAsync("Music.mp3");

other info:

video.Title

video.ThumbnailURL

video.Url

There is also a WPF demo of this project under the folder Y2SharpWPF

install the latest nuget from https://www.nuget.org/packages/Y2Sharp/ and you can use the command above.

explanations to all the parameters

DownloadAsync(path, type, quality);
  1. videoid is the part of youtube link after watch?v=
  2. path. where you want your downloaded file to be stored (by default force creates file so be carefull)
  3. type. either mp3 or mp4. determines if downloaded content is audio or video.
  4. quality. for music the quality should allways be 128 but videos can be downloaded at any of youtubes default resulutions.

If you are having problems please open a new issue or message me in discord @arttukk

y2sharp's People

Contributors

arttukuikka avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

afridi124

y2sharp's Issues

video.Title doesn't work with unicode characters

for example if you try to download video with á in the name it will only return the unicode code of that character

Example
Mááár - I Dont Knowé = M\u00E1\u00E1\u00E1R - I Dont Know\u00E9

a temporary fix to this would be to user the official youtube api to get all of the other info of the and only use y2sharp for downloading

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.