Exercise on Last.fm data aggregation
Exercise on Last.fm data aggregation
Python 2.7
Clone source code into a folder the Python interpreter can write into (eg. your
home directory):
$ git clone git@github.com:csparpa/last.fm-stats.git
Install dependencies:
$ cd last.fm_stats
$ sudo pip install -r requirements.txt
(omit sudo
if on Windows)
Launch the script replacing <username>
with the username you want stats for:
```bash
$ python lastfm_stats.py
You have listened to a total of 254 tracks.
Your top 5 favorite artists: U2, Led Zeppelin, Rolling Stones, Bob Marley, Kasabian.
You listen to an average of 32 tracks a day.
Your most active day is Tuesday.
How to run the test suites
--------------------------
Make sure you are inside the git-cloned folder and execute:
```bash
$ python -m unittest discover