soundcloud-search
CLI to query Soundcloud for tracks matching a given query
Last updated 5 years ago by emilbay .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install soundcloud-search 
SYNC missed versions from official npm registry.

soundcloud-search

CLI to query Soundcloud for tracks matching a given query

Installation

npm install soundcloud-search

Add -g to install globally, otherwise execute using node_modules/.bin/soundcloud-search

Usage

NAME
  soundcloud-search - CLI to query Soundcloud for tracks matching a given query

SYNOPSIS
  soundcloud-search [OPTION]... FILE

DESCRIPTION
  Resolve track queries to Soundcloud tracks, taking queries as each line of FILE.
  Unfortunately an explicit input file and output file has to be given since
  STDIN and STDOUT are used to prompt the user to resolve tracks for each query.

  -o, --output-file
    required. Where to write resulting JSON objects. Output as NDJSON

  -n, --num-results
    max number of results to display when prompting the user to resolve queries

  -s, --soundcloud-client-id
    soundcloud client ID to use when accessing their API. Can also be set with
    the env var SC_CLIENT_ID

EXAMPLE

  Read all track plays from a CSV file with headers `artist` and `track`

    export SC_CLIENT_ID="..."
    soundcloud-search -o results/tracks.ndjson \
      <(cat data/plays.csv | \
        csv-parser --seperator=";" | \
        jq -r '.artist + " - " + .track' \
      )

License

ISC

Current Tags

  • 1.0.2                                ...           latest (5 years ago)

3 Versions

  • 1.0.2                                ...           5 years ago
  • 1.0.1                                ...           5 years ago
  • 1.0.0                                ...           5 years ago
Maintainers (2)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (8)
Dev Dependencies (1)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |