VPoshelyuk / CISC3130-Lab3

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CISC3130-Lab3

Report: Who are the music artists (in alphabetical order)?

About

This CLI tool allows you to parse any CSV report from SpotifyCharts and provides you with the information on artists' appearances in the parsed chart right in your command line using Linked List as an underlying data structure. Sounds awesome, right? But the cherry on the top of all of this is the fact that you also get a txt report with the data sorted by artist name. Feel lazy and don't want to go to SpotifyCharts to download a report to parse? Don't worry, you can still use my awesome CLI tool since it has one of the latest Global Daily CSVs built-in. But more about that in the Setup and Usage section.


Dependencies


  • Terminal for command line access

The main piece of software that this repo holds is a Node app, for that to run you will need:

  • Node.js v10.22.0 or newer (You can check your Node version by running node -v in your Terminal)

Setup and Usage


  1. While you are in the home directory of this repo, press on the green "Code" button in the top right corner.
  2. You will be prompted to copy an SSH or HTTPS URL to clone this repo to your local machine.
  3. After you got that URL, go to the Terminal on your local machine(I will assume you are on Mac or Linux) and run the following command:
git clone *PASTE THE LINK HERE*
  1. After all the files are copied to your local machine navigate to the newly created directory using the following command
cd CISC3130-Lab2/src/
  1. When you are inside of the src directory
  • If you want to get this tool running with the default preloaded CSV, simply run the following command without any argumnets provided:
node get-reports.js
  • Otherwise, if you have a custom report to parse, run the same command but with the argument specifying the path to your CSV file:
node get-reports.js *PATH TO CSV*

NOTE: Filepath should be a path to the file saved locally, also no spaces in the Pathname are allowed.

About


Languages

Language:JavaScript 100.0%