Giter VIP home page Giter VIP logo

youtube-search-scraper's Introduction

Youtube-Search-Scraper

  • Scrapes web page on www.youtube.com from user-entered search item and displays video names and links on frontend page
  • User enters search item on the web page which is connected to a Node server (by Express web framework) and then automatically runs a background python script that uses Beautiful Soup library to scrape the web-site generated from the user input.
  • Response returns an array of JSON objects containing the names of all YouTube videos and their corresponding links to frontend site.

Example Usage:

Here's an example where I input "Linkin Park", telling the program to scrape www.youtube.com with "Linkin Park" in the search bar.

img

  • After clicking "Submit" button on the web page, an AJAX call sends "Linkin Park" to a Node server from the app.js script.
  • The server receives this request (using Express API) and calls a Python script, sending "Linkin Park".
  • Finally, the python script running beautiful soup library scrapes the YouTube site searching "Linkin Park" and returns an array of JSON objects to the server, which sends it to the frontend client and is displayed in a table.

Get Started:

  • Open local server to "YouTube Search Scraper" directory
  • http-server -o
  • Run Node server (app.js)
  • Voila!

Future Extensions of Project:

  • Automate entire procedure (run everything in background?) DONE
  • Display .csv results onto web page DONE (used JSON)
  • Beautify front-end web page DONE
  • Improve error handling
  • Scrape more than just one page (maybe query user for how many videos to display on .csv)
  • Add download links to scraped links

youtube-search-scraper's People

Contributors

dave2000sang avatar

Stargazers

 avatar Sutiliza.org avatar Dheeraj Agrawal avatar  avatar

Watchers

James Cloos 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.