Skip to content

PhoenixJatrix/Discord-Rich-Presence-Python-Scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discord Rich Presence Python Scripts

This repository contains scripts that interacts with Discord Rich Presence api.

Youtube Music

Extracts url of the current playing music or even Youtube video from a Chrome tab then using Google's api, it fetches the metadata. The scripts then extracts the artist, title and album cover before updating rich presence. The lifecycle is kept alive with a "while loop" that has a 15 second delay The title and artist names can be better formatted but this works well enough for my use case

Screenshot 2025-02-14 215630 Screenshot 2025-02-14 215751 Screenshot 2025-02-14 215656

What you need:

Python

Python 3.4 or higher

Libraries:

  • subprocess
  • pypresence
  • requests
  • pathlib
  • psutil

You can install the libraries via cmd by typing:

pip install subprocess

pip install pypresence

pip install requests

pip install pathlib

pip install psutil

Api keys and oauth IDs:

That's it! You can just run the Python file via cmd or an ide and insert the details and it should open a Chrome instance. From there, open a Youtube Music tab and start playing songs.

You can optionally allow the script to create a Youtube Music shortcut in the desktop. This way, you can easily run the script with just a click (or 2, if you're that specific)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages