This project is a YouTube media downloader that allows users to download YouTube videos and audio in various qualities. It provides two versions of the interface: Version 1 and Version 2.
-
Clone the repository:
git clone https://github.com/anshorfalahi/yt-unduh.git cd yt-unduh
-
Install the dependencies:
npm install
-
Change the
API_KEY
in theserver.js
file to your own API key Neoxr API.
-
Start the server:
npm start
-
Open your browser and navigate to
http://localhost:3000
.
/api/download_v1
: Endpoint for downloading media using Version 1./api/download_v2
: Endpoint for downloading media using Version 2./api/playlists
: Endpoint for fetching YouTube audio by tittle.
public/index_v1.html
: HTML file for Version 1 of the interface and play audio by tittle.public/index_v2.html
: HTML file for Version 2 of the interface.public/script.js
: Combined JavaScript file for both versions.public/style.css
: Combined CSS file for both versions.server.js
: Express server setup and API endpoints.
-
Version 1:
- Simple interface to input YouTube URL and download media.
- Displays loading animation while fetching data.
- Shows download links for available formats.
- Play audio by tittle.
-
Version 2:
- Enhanced interface with options to select media type (audio/video) and quality.
- Displays loading animation while fetching data.
- Shows download links for available formats.
This project is licensed under the ISC License.
Anshor Falahi