go-mixcloud-search

command module
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 23, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

README ΒΆ

A simple cobra-based cli for searching mixcloud.

🎹 Overview

Mixcloud is an amazing service for discovering and listening to radio shows, DJ mixes and podcasts.

The mixcloud web interface can be cumbersome when trying to search for mixes with specific terms etc. This project was created as a way to search mixcloud for mix data with a quick and simple search.

The cli supports searching for a term on mixcloud and then filtering the results (client-side) using arrays of exclude and include terms.

Currently the results are output as json to file test.json (early days!).

🏭 Installing

πŸ“„ Prerequisites
  • Go (>=1.17)
πŸ”§ Building the cli

Select the appropriate build command from below. This will output the cli binary into the current directory.

# Mac M1
GOOS=darwin GOARCH=arm64 go build -o gmc
# Mac Intel
GOOS=darwin GOARCH=amd64 go build -o gmc
# Linux
GOOS=linux go build -o gmc

πŸ“” Usage

The cli supports the following subcommands

Search for mixes on mixcloud by term.

Usage:
  gmc search [flags]

Flags:
  -e, --exclude strings   Filter to exclude entry
  -h, --help              help for search
  -i, --include strings   Filter to include entry
  -l, --limit int         Limit number of results
  -t, --term string       Search term
🌠 Example usage
gmc search --term truncate --include berghain --exclude 2016
πŸ“œ history
Search listen history for a user.

Usage:
  gmc history [flags]

Flags:
  -e, --exclude strings   Filter to exclude entry
  -h, --help              help for history
  -i, --include strings   Filter to include entry
  -l, --limit int         Limit number of results
  -u, --user string       User name to search
🌠 Example usage
gmc history --user akumad --include party

Documentation ΒΆ

Overview ΒΆ

Copyright Β© 2022 NAME HERE <EMAIL ADDRESS>

Directories ΒΆ

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL