Last.fm "Now Playing" broadcast to VK status message. Inspired by P2LOVE's Spoti2VK. Ready for Heroku.
IMPORTANT! Currently, the project does not work correctly on non-Russian servers. More than half of the songs will not be broadcast in the status, and proxies will not help. I'm trying my best to solve this problem.
Initially, I wanted to broadcast my "Now Playing" status from Spotify to VK, but I found out that the Spotify API is absolutely not suitable for such purposes and requires Oauth. Then I decided to use Last.fm, it has a convenient API and only requires an API key.
Configure some global variables.
You need to get a token with access to audio methods. Go to vkhost.github.io, select "VK Admin" and copy the part of the address bar from access_token=
to &expires_in
. Here is your token.
Get an API account here: last.fm/api/account/create and copy your API Key.
Your Last.fm username.
Time between checking Last.fm status (in secs). Default: "20".
"true" or "false"
If debugging is enabled, an exception will cause the application to stop. Default: "false".
"true" or "false"
Whether to retry the search if the full name is not found, using only the track name. Default: "true".
"true" or "false"
Whether to use Russian proxies. The search will not work properly if the machine has a non-Russian IP address (including Heroku), proxies can help (but they really don't). Default: "true".
- requests
- free-proxy (optional)