Skip to content

This is an automation tool that uses the YouTube Data API to fetch the latest crime related news from multiple regions

Notifications You must be signed in to change notification settings

rekredhead/youtube-crime-news-collector

Repository files navigation

Description

  • This is an automation tool that shows the latest crime news from multiple regions around the world
  • It uses the YouTube API and makes a request for the crime news for a single regions (e.g. New York)
  • Then it compiles all the findings, filters out the non-crime-related news and outputs the data onto a .txt file
  • The file contains the areas, youtube video title and link of the crimes occurred in those areas

Improvements

  • The tool can filter articles more accurately by adding more unique crime related terms in the wordsRelatedToCrime.js array
  • More areas can be added to the youtubeSearches.js array (please use the same object data as the previous elements in the list)
  • Output the data into a Google Document to make it easier to move to other google docs

Warning

  • There can only be 100 API requests per day. Currently, the tool makes 31 requests so the tool can only be used 2 times a day at maximum
  • The tool also gets data for upto 3 pages (since the API uses pagination) per search parameter (only for channel searches)

Setup

  • Clone this repository
git clone https://github.com/rekredhead/youtube-crime-news-collector.git
  • Install the dependencies
npm install
API_KEY="(your-api-key)"
  • Run the app:
npm start

About

This is an automation tool that uses the YouTube Data API to fetch the latest crime related news from multiple regions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published