/youtube-video-scraper

A Node.js API for video scraping from YouTube with ID

Primary LanguageJavaScriptMIT LicenseMIT

YouTube Video Scraper

Scrapes video data with ID, and returns title, description, channel and gameName (if it's a game video)

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

Clone the repo in your environment

git clone https://github.com/gnurgeldiyev/youtube-video-scraper.git

Installing

# move into project folder
cd youtube-video-scraper

# install the dependencies
yarn install

# rename the .env.sample
mv .env.sample .env

# add your variables
nano .env

Running the server

yarn start

Example

# GET - /{videoId}
curl localhost:3000/h8OX0FNWANM
Response
{
  "status": true,
  "title": "Recognizing Ignaz Semmelweis and Handwashing",
  "description": "Today’s Doodle follows the official guidelines ...",
  "channel": "GoogleDoodles",
  "gameName": ""
}

Running the tests

yarn test

Built With

License

This project is licensed under the MIT License - see the LICENSE.md file for details