Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- jorgenpt@unsane:~/projects/despotify/bindings/python$ ./shell.py
- Enter your username: cuddlykitten
- Enter your password:
- Python 2.5.2 (r252:60911, Jul 31 2008, 17:28:52)
- [GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)]
- Everything from the spytify module has been imported.
- The variable "s" is your current Spotify™ connection, and has the following methods:
- authenticate, close, pause, play, resume, search, stop, stored_playlists
- >>> s.stored_playlists()
- @@<RootList: [<Playlist: Koz by cuddlykitten (29ea48d4527cb0c2e701a8ad6bf6cc8f02)>, <Playlist: koz by habeo (6cdb4143565edf301e3fa53f8474e39e02)>, <Playlist: Festlist by cuddlykitten (f9c9ca152daed4b88319f5a02a71f88402)>, <Playlist: Nuzz by cuddlykitten (670bd6ae6e708c50e711ffa9d168faee02)>, <Playlist: I <3 techno in the morning by christ0ph (78de6a3732cd0137337a902ab04a6a0d02)>, <Playlist: Electrogirls by nshearing (9fa4b57c7ce5297140daaa0fd153be3002)>, <Playlist: Binary Beats by vengo (6747d2fffe3f33b7eacaeea239f5ea5402)>]>
- >>> playlist = _[-3]
- >>> s.play(playlist, playlist.tracks[6])
- >>> playlist.tracks[:5]
- @@[<Track: Axwell - Feel the Vibe (Extended Mix) - Best of House 2006 (3085062997a0478a8c458ad855a51dde)>, <Track: Axwell - It's True - It's True (ea2f1de85ec94ce896eb544f50168572)>, <Track: Eddie Amador - House music - When House Was Da Shit (63ee7d84c4604324aa7c6214b92b797d)>, <Track: Pryda - Spooks - Spooks (9fa15b7e0ffd4916884dd715472948db)>, <Track: Burufunk & Carbon Community - Community Funk (Deadmau5 Remix) - Community Funk (c0a50032d5d9418f954541b93928699f)>]
- >>>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement