Coder Social home page Coder Social logo

adamhunter108 / youtube_scraper Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 13 KB

The backend for a proof-of-concept internal tool to find and monitor copyrighted content on YouTube.

Home Page: https://flask-youtube-scraper-a55f990bea9f.herokuapp.com/api/search

Python 99.45% Procfile 0.55%
flask supabase youtube postgresql api python digital-asset-management web-scraper heroku

youtube_scraper's Introduction

youtube_scraper

About

  • The backend for a proof-of-concept internal tool to find and monitor copyrighted content on YouTube.

  • This is a Python Flask application that searches the YouTube Data API, filters out specific channels from the search and saves data to a live PosgreSQL database.

  • The data includes:

    Channel Title, Channel ID, Video ID, Description, Thumbnail URL, and Publish Time

  • The app is deployed continuously to Heroku and the PostgreSQL database is hosted on Supabase.

Endpoint

⚠️ note: this endpoint is protected with an authorization Bearer token.

  • The live base URL:
https://flask-youtube-scraper-a55f990bea9f.herokuapp.com/
  • Local development URL:
localhost:5000/

Search

{{URL}}/api/search?query=<YOUR_SEARCH_QUERY>

Optionally exclude specific channels by name:

{{URL}}/api/search?query=<YOUR_SEARCH_QUERY>&exclude=ChannelNameToExclude,AnotherChannelToExclude

for example: to search for "Lil Wayne" but exclude his official channel with his channel ID:

{{URL}}/api/search?query=lil%20wayne&exclude=LilWayneVEVO

Run Locally

‼️ Requirements:

  • rename .env.example to .env and add your environment variables
$ # Create virtual environment
$ venv venv
$ # Activate virtual environment
$ # If on Mac or Linux
$  source venv/bin/activate
$ # If on Windows
$ c:\>c:\Python35\python -m venv c:\path\to\venv
$ # Install dependencies
$ pip install -r requirements.txt
$ # Export Flask app
$ export FLASK_APP=app.py
$ # Run the development server
$ flask run

youtube_scraper's People

Contributors

adamhunter108 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.