Giter Site home page Giter Site logo

i-m-g / amazonmusictrackinfoexporter Goto Github PK

View Code? Open in Web Editor NEW
3.0 0.0 1.0 29 KB

Using a Chrome Extension to export current song and artist data back to a local node server for use while streaming.

License: MIT License

JavaScript 100.00%
amazon-music chrome-extension song-data

amazonmusictrackinfoexporter's Introduction

Amazon Music Song Data Extractor

Using a Chrome Extension and Node server to save the current song and artisit information to a text file for use in streaming software like OBS or Xsplit.

About

This is my solution to the problem of no API support from Amazon Music. The Chrome Extension simply checks if I'm playing music and if I am then passes the song title and artist from contentScript.js to background.js. From the background script we just make a simple POST to the Node (express.js) server. From there the server writes the data to a text file. We can not write to a file from within the browser, so we need to extract it and make an API call. The Develop Extenions Docs are helpful if you want to better understand how the content and backgroud scripts work.

Setup

You'll need to add a logs folder to the project or change the output location of the text files.

Install NPM Packages

You'll need to install express and cors for this project.

Installing the extension

Open up your Chrome browser and in a new tab go to chrome://extensions. On the extensions page enable 'Developer Mode' and click 'Load Unpacked'. Navigate to the project location and select the extension folder to install. You'll need to toggle the extension on when you want to use it, otherwise I leave it off.

Running the server

Once the extension is installed and enabled, load up a tab with Amazon Music. Start the server node app.js and start playing music. When the server receives the song data it will console log it and write it to the text file. The POST to the server only happens if the song changes. The content script checks every 2 seconds for a song change.

amazonmusictrackinfoexporter's People

Contributors

i-m-g avatar

Stargazers

 avatar  avatar

Forkers

nakatsusizuru

amazonmusictrackinfoexporter's Issues

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.