refresh-access-token.pyon commit added regex to strip 'feat. *' from title, made into module (5c32c4d)
   1#! /bin/python
   2
   3import requests
   4
   5id = input('Enter the client id: ');
   6secret = input('Enter the client secret: ');
   7token = input('Enter the refresh token (obtained from get-access-token.py): ');
   8
   9params = {'client_id':id,
  10        'client_secret':secret,
  11        'grant_type':"refresh_token",
  12        'refresh_token':token}
  13
  14r = requests.post(url = "https://accounts.spotify.com/api/token", data = params)
  15
  16print(r.text);