Skip to content

Instantly share code, notes, and snippets.

@taylordelehanty
Last active May 7, 2016 19:05
Show Gist options
  • Select an option

  • Save taylordelehanty/48f385b9ea774eb7eab97680761873d0 to your computer and use it in GitHub Desktop.

Select an option

Save taylordelehanty/48f385b9ea774eb7eab97680761873d0 to your computer and use it in GitHub Desktop.
#! usr/bin/python
#currently python3
import py2neo as py
class MusicTraverser:
def getSong():
# gets the information needed from the neo4j graph and sends request to lastfm API to play song
pass
def playSong():
# need to manage audio
pass
def waitUntilSongIsOver():
# need to make sure the next song doesn't start playing until the current song is over
def nextSong():
# checks nearby nodes and randomly(?) chooses one as the next song
pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment