A stream-of-concionsness like exploration of RSS-feeds, music APIs, static web site generation that seems to end up as a album-of-the-day website generator...
Example:
url: "https://somewhere.org/aotd/"
cache: "./cache"
rss_dir: "./public/rss"
csv_dir: "./public/csv/"
html_dir: "./public"
csv_file: "./album_of_the_day.csv"
backup_csv_file: "./random_album_of_the_day.csv"
songlink_api: "https://api.song.link/v1-alpha.1/links"
url_parameters:
userCountry: "FR"
rss:
author: "someone"
base_url: "https://somewhere.org/aotd/rss/"
lastfm:
api_key: "API_KEY"
base_url: "http://ws.audioscrobbler.com/2.0/"
panelbear_site: "SITE_KEY"
You can also add elements to a file called ‘config_override.yml’ that will be merged into this config at runtime.
Example:
date,album,artist,spotify-app,comment,year,bandcamp
2020-03-31,"A Living Room Hush","Jaga Jazzist",spotify:album:79yZ6f40ABeqdqh1yqRgiS,"A modern classic from 2001! Bestest track: Airborne.",2001,https://jagajazzist.bandcamp.com/album/a-living-room-hush
bundle install
ruby generate_files.rb
No ruby installed? Run with Docker.
DOCKER_BUILDKIT=1 docker build --output out .
This will generate the files and export them to the specified folder (‘out’).