An open API service indexing awesome lists of open source software.

https://github.com/ogrodje/podcasters-collector

A tiny tool that collects stats from Spotify Podcasters Platform.
https://github.com/ogrodje/podcasters-collector

anchor influxdb influxdb2 podcasts rust spotify

Last synced: 2 months ago
JSON representation

A tiny tool that collects stats from Spotify Podcasters Platform.

Awesome Lists containing this project

README

        

# Spotify Podcasters Collector 🦀

![podcasters-collector workflow](https://github.com/ogrodje/podcasters-collector/actions/workflows/rust-docker.yml/badge.svg)

A tiny tool that collects stats from [Spotify Podcasters Platform](https://podcasters.spotify.com/).

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

We use it ourselves to check stats for our [Podcast Ogrodje](https://anchor.fm/ogrodje).

## Usage

```bash
Usage: podcasters-collector [OPTIONS] --email --password

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

### Binaries

- [podcasters-collector for x86_64 with musl (.tar.gz)](https://github.com/ogrodje/podcasters-collector/releases/download/refs%2Fheads%2Fmaster/podcasters-collector-x86_64-unknown-linux-musl.tar.gz)

### Docker

With Docker Image available on [GitHub Container Registry - `ghcr.io`][ghcr-podcasters-collector].

```bash
docker run --rm ghcr.io/ogrodje/podcasters-collector:latest \
podcasters-collector --email --password
```

### Importing into InfluxDB

```bash
$ ./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.

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

Build a local Docker image

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

## Author

- [Oto Brglez](https://github.com/otobrglez)

![Twitter Follow](https://img.shields.io/twitter/follow/otobrglez?style=social)

[ghcr-podcasters-collector]: https://github.com/ogrodje/podcasters-collector/pkgs/container/podcasters-collector