djmango

metafill parseplaylist example

Jul 23rd, 2021
1,167
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import requests
  2.  
  3. url = "https://metafill.aslice.com/api/parseplaylist/"
  4.  
  5. payload={'playlist': '[{"artist": "wolfmother", "track": "mother"}]'}
  6. headers = {
  7.   'Authorization': 'Basic AUTHHERE'
  8. }
  9.  
  10. response = requests.request("POST", url, headers=headers, data=payload)
  11.  
  12. print(response.text)
  13.  
RAW Paste Data