Skip to content

adr1ja/Music-Chatbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🎡 Last.fm Music Discovery Chatbot

A simple, command-line chatbot built with Python that recommends music using the Last.fm API. This project allows users to discover new music based on their mood or find songs similar to their favorites.


✨ Features

  • Recommend by Mood/Tag: Get a list of the top 10 most popular songs for any given tag (e.g., "happy", "rock", "80s").
  • Find Similar Songs: Enter a song title and artist to get a list of 10 similar tracks.
  • Interactive CLI: A user-friendly, menu-driven interface that runs in your terminal.
  • Direct API Integration: Communicates directly with the Last.fm API using the requests library, without any third-party wrappers.

πŸ’» Technology Stack

  • Language: Python 3
  • API: Last.fm API
  • Core Library: requests for making HTTP API calls.

πŸš€ Getting Started

Follow these instructions to set up and run the project on your local machine.

1. Prerequisites

Make sure you have Python 3 installed on your system. You can download it from python.org.

2. Installation & Setup

Step 1: Get the Project Files

Download or clone the project files, which include:

  • chatbot.py
  • requirements.txt

Step 2: Configure the Script

Open the chatbot.py file and paste your API key from Last.fm into the API_KEY variable.

# chatbot.py

# ... (documentation)

import requests
import sys

# --- CONFIGURATION ---
# TODO: Paste your Last.fm API key here.
API_KEY = "PASTE_YOUR_API_KEY_HERE"  # <--- PASTE YOUR KEY HERE
BASE_URL = "[http://ws.audioscrobbler.com/2.0/](http://ws.audioscrobbler.com/2.0/)"

# ... (rest of the code)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages