V
V
Vladimir2016-08-01 14:33:18
PHP
Vladimir, 2016-08-01 14:33:18

Is it possible to autologin/logout script for Spotify?

Hello colleagues.
There is a Spotify program that does not work in the CIS, but it can be used by registering through a VPN from the EU and the rest of the world. But the program only works for two weeks, then you need to reconnect the VPN and log in with an account to confirm the "host country", after which it continues to work for the next 2 weeks.
Is it possible to make a cron script that will schedule the same movements with authorization, but from an Ubuntu server located in the EU country (in which access to the program is allowed) in the console?
I’m not familiar with the API from the word at all, Google came up with a link with a similar one and various projects on GitHub ( one , two )
Perhaps someone knows already ready decisions or will help me to master it.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir, 2016-08-02
@itsimple

Пробую использовать Spotipy. Но в связи с незнанием Пайтона упёрся в тупик - прошу помощи.
Итак:
Собственно скрипту надо авторизоваться: ссылка на вики Спотипай, и если я правильно понял - этой авторизации будет достаточно для продления срока использования программы на 2 недели.
Попробовал запустить код из примера по ссылке выше, коду не хватает данных (SPOTIPY_CLIENT_ID,
SPOTIPY_CLIENT_SECRET, SPOTIPY_REDIRECT_URI), данные эти получил на сайте Спотифая, но вставив их в скрипт(по примеру из ссылки выше) не получил ожидаемого результата. ЧЯДНТ, подскажите?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question