Skip to content

A tiny tool that collects stats from Spotify Podcasters Platform.

Notifications You must be signed in to change notification settings

ogrodje/podcasters-collector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spotify Podcasters Collector 🦀

podcasters-collector workflow

A tiny tool that collects stats from Spotify Podcasters Platform.

It's written in Rust, and it was great fun to build.

We use it ourselves to check stats for our Podcast Ogrodje.

Usage

Usage: podcasters-collector [OPTIONS] --email <EMAIL> --password <PASSWORD>

Options:
  -e, --email <EMAIL>
  -p, --password <PASSWORD>
  -f, --format <FORMAT>      [default: string] [possible values: string, csv, influx-dbcsv, json]
  -h, --help                 Print help information
  -V, --version              Print version information

Binaries

Docker

With Docker Image available on GitHub Container Registry - ghcr.io.

docker run --rm ghcr.io/ogrodje/podcasters-collector:latest \
  podcasters-collector --email <EMAIL> --password <PASSWORD>

Importing into InfluxDB

$ ./target/release/podcasters-collector ... --format influx-dbcsv > plays.csv
$ influx write -b experimenting -f plays.csv

Development

Get the latest Rust and then use cargo buil to build the project and run it.

$ cargo build --release
$ ./target/release/podcasters-collector --help

Build a local Docker image

docker build . -t ogrodje/podcasters-collector -f Dockerfile

Author

Twitter Follow