Git Product home page Git Product logo

wbor-spinitron-user-import's Introduction

wbor-spinitron-user-import

A script we use at WBOR 91.1 FM to automate field entry in the "add users" dialogue for a Spinitron station. Populates field using a .csv with the credentials of DJs you want to onboard (see data.csv for an example).

Requirements

  • A JavaScript runtime environment. Node.js will be used for this example (brew install node).
  • A modern web browser, e.g. Firefox (brew install --cask firefox).

Usage

  • Clone this repository to your machine and navigate to its location via command line.

  • Add the .csv containing your data to the same folder as csv-array.js.

    • The first line (header) should be email, name, djName, and each line after should be a DJ entry (such as [email protected], John Doe, DJ John). The last line of the file should be blank.
  • Run node csv-array.js and copy its output. csv-array.js assumes your file is named data.csv. If it is not, you have the option to pass the script an argument with the name of the .csv you'd like to use (for example, node csv-array.js dj_info.csv).

  • Open spinitron-autofill.js in a text editor/IDE of your choice, e.g. VSCode.

  • Replace {YOUR DATA HERE} with the output you copied when running csv-array.js

  • In spinitron-autofill.js select all text and copy.

  • Open Spinitron's "add users" dialogue after logging in as an admin.

  • Open your browser's console. In Firefox on macOS, this is done by entering CMD + OPTION + K.

  • Paste the spinitron-autofill.js script you copied (ensuring it includes your data[] array) and press enter.

  • Submit! The script doesn't fill in the existing fields but rather creates new ones for each entry at the bottom of the page, effectively allowing it to bypass Spinitron's limit of 10 at a time.

wbor-spinitron-user-import's People

Contributors

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