Pulls Last.fm scrobbles into a Jekyll markdown blog post
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
jekyll-blog-builder
music-markdown
weekly-music
.gitignore
LICENSE
README.md
config.json
index.js
package.json

README.md

Weekly Music Blogger

This project downloads a list of the top albums and tracks listened to by a user from Last.fm scrobbles then outputs it as a Jekyll post (markdown + metadata).

This is used to create the weekly "Coding Music" blog posts on http://lukemerrett.com/

Dependencies

Prerequisites are:

  • NodeJS (tested on v4.5.0)
  • NPM (tested on v2.15.9)

This will install the 3 modules inside the root project along with all their pre-requisites

npm install

Tools used

Setup

Populate the config.json file in root with your Last.fm API credentials. You can get an API access key and secret from here: http://www.last.fm/api

Sample:

{
    "username": "bob",
    "apiKey": "xxxx",
    "secret": "xxxx",
    "outputFolder": "."
}

Run

From the root directory of the project run:

node index.js

The blog article will be output in the root folder with the filename yyyy-MM-dd-coding-music-yyyy-MM-dd.markdown.

This can then be added immediately to a Jekyll blog; alternatively the markdown can be extracted and used elsewhere.