Giter Site home page Giter Site logo

spotify-free-api-player's People

Contributors

criticalelement avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

surfmore

spotify-free-api-player's Issues

Need guidance - Creating fake Device

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?

self._authorize() timeoutError

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

Delay before affecting spotify

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 ๐Ÿ˜„

Many errors in experminental.py

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

a question

If I change the player playing device to the Fake device Will it work? Will I hear the music through the script?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.