Scrapes YouTube video data with ID, and returns title
, description
, channel
, views
and gameName
(if it's a game video)
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
Clone the repo in your environment
git clone https://github.com/gnurgeldiyev/youtube-video-scraper.git
# 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
yarn start
# GET - /{videoId}
curl localhost:3000/h8OX0FNWANM
{
"status": true,
"title": "Recognizing Ignaz Semmelweis and Handwashing",
"description": "Today’s Doodle follows the official guidelines ...",
"channel": "GoogleDoodles",
"views": "56188961"
}
yarn test
- Express - The web framework used
- Puppeteer - For web scraping
- Jest - For testing
- SuperTest - For testing HTTP API
This project is licensed under the MIT License - see the LICENSE.md file for details