GithubHelp home page GithubHelp logo

api-downtube's Introduction

api-downtube

STATE - EM DESENVOLVIMENTO

API for youtube video download and integration in your system.

The idea for the development of this project came from the following problem: How can I download a youtube video in one line of code? so I entered the following dilemma, can I do this? And the answer is: I did.

I faced some challenges being the first API in my life and I wanted to implement solid concepts as much as possible. Even if I miss some, but I will continue this project and refactor your code.

I learned many things throughout the development of this project, from the MVC architecture pattern, to the powerful frameork flask. I am very satisfied with the result and this is just the beginning.

Topics

What problem does this API solve?

The possibility for you with few lines of code to integrate youtube videos in a simple and fast way. In addition to being able to download videos and audios for free. No need to access third-party platforms where you don't know what's going on behind the scenes. Because we at downtube value open source

Architecture

arch

The flask will receive the endpoint and call the controller of that endpoint which in turn will call a model. Depending on the user's request, the model can consume the youtube API or download a certain video using yt-dlp

Features

  • Download videos

  • Download musics

  • Search main video information

  • Search video by url

  • Search video by name

  • integrate video in your application with iframe

- Download videos

Download any video on youtube, passing its url as a parameter.

download flow example:

exemple-download

code exemple:

import requests

endpoint = "https://downtube-api/download/video"
body = {'url':"https://www.youtube.com/watch?v=TV7HOGNXybU"}

request = requests.post(url = endpoint, json = body) #return: <Response [code]>

if request.status_code == 200:
    videoDownloadUrl = request.text
else:
    print("bad requets, code error -> ", request.status_code)

- Download musics

Download any music on youtube, passing its url as a parameter.

code exemple:

import requests

endpoint = "https://downtube-api/download/music"
body = {'url':"https://www.youtube.com/watch?v=TV7HOGNXybU"}

request = requests.post(url = endpoint, json = body) #return: <Response [code]>

if request.status_code == 200:
    videoDownloadUrl = request.text
else:
    print("bad requets, code error -> ", request.status_code)

api-downtube's People

Contributors

rodriguesxxx avatar

Stargazers

 avatar

Watchers

 avatar

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.