Skip to content

Conversation

@amaziahub
Copy link
Contributor

PR Title

Add Random Song Generator based on Mood

Summary

This PR introduces a new Python script that fetches a random song from YouTube based on a user's mood and opens the YouTube link in the browser. The script uses the YouTube Data API to search for songs related to the mood input (e.g., happy, sad, energetic).

Description

The changes include:

  • Added random_song_generator.py script that takes mood input and fetches related songs from YouTube.
  • Integrated the YouTube Data API to search for songs by mood.
  • Used webbrowser to open the song link in the default browser.
  • Added requirements.txt for dependencies.

The changes are as follows:

  • Created the script random_song_generator.py.
  • Added function to fetch songs from YouTube based on mood input.
  • Integrated the YouTube Data API and used webbrowser.open() to launch the video in a browser.
  • Added requirements.txt for dependencies (google-api-python-client).
  • Added script to main readme list

Checks

in the repository

  • Made no changes that degrades the functioning of the repository
  • Gave each commit a better title (unlike updated README.md)

Thank You,

Amazia Gur

Copy link
Contributor

@hasan-py hasan-py left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, Thanks for your contribution.

@hasan-py hasan-py merged commit c5ce902 into wasmerio:master Dec 1, 2024
@amaziahub
Copy link
Contributor Author

@hasan-py is it possible to be added to the contributors wall ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants