criticalelement / spotify-free-api-player Goto Github PK
View Code? Open in Web Editor NEWThis allows you to modify the user's playback state through the spotify API, without needing premium.
This allows you to modify the user's playback state through the spotify API, without needing premium.
Hello, i am running example.py and i have also logged into the spotify once on chrome.
i am getting the following error
AttributeError: 'SpotifyPlayer' object has no attribute 'access_token_expire'
Hello, hope you're doing well. I am creating to create a fake device using python but am unable to do so, can u kindly tell me if it is possible to do it without a browser?
Im trying to connect using a cookie string and run a skip command.
examples.py:
from experimental import SpotifyPlayer
import logging
logging.basicConfig(level=logging.DEBUG, format='%(asctime)s - %(levelname)-8s - %(name)-14s - %(message)s')
# edge is preferred (and is now default) because reading cookies in chrome > 104.0.5112.102 needs elevation
# https://github.com/borisbabic/browser_cookie3/issues/180
spotifyplayer = SpotifyPlayer(cookie_str='my_cookie_string')
spotifyplayer.command(spotifyplayer.skip)
spotifyplayer.force_disconnect = True
spotifyplayer.disconnect()
this is my debug output:
2024-02-09 23:06:20,061 - DEBUG - urllib3.connectionpool - Starting new HTTPS connection (1): open.spotify.com:443
2024-02-09 23:06:20,291 - DEBUG - urllib3.connectionpool - https://open.spotify.com:443 "GET /get_access_token?reason=transport&productType=web_player HTTP/1.1" 200 239
2024-02-09 23:06:20,294 - DEBUG - asyncio - Using selector: KqueueSelector
2024-02-09 23:06:20,402 - DEBUG - websockets.client - = connection is CONNECTING
Traceback (most recent call last):
File "/Users/aaron/Desktop/spotify-free-api-player/examples.py", line 9, in <module>
spotifyplayer = SpotifyPlayer(cookie_str='my_cookie_string')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/aaron/Desktop/spotify-free-api-player/experimental.py", line 226, in __init__
self._authorize()
File "/Users/aaron/Desktop/spotify-free-api-player/experimental.py", line 431, in _authorize
raise TimeoutError
TimeoutError
Why after I ran the script Is not closed?
There is a noticeable delay between running the script and the script actually affecting spotify (~1s), is there any way to reduce that? It seems like initializing the fake device or whatever might be the main cause of that, so maybe there's a way to keep it initialized in the background?
Idrk what I'm talking about though so if it's possible to make it more instant that would be great ๐
Hey, it seems I cannot get this working, is this outdated now?
I would like to contact you about this however it seems there is no contact info on your profile
If I change the player playing device to the Fake device Will it work? Will I hear the music through the script?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.