Advertisement
Guest User

Untitled

a guest
Mar 7th, 2020
572
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.38 KB | None | 0 0
  1. import requests, bs4, json
  2.  
  3. cookies = {'mscom_new': 'YOUR_SESSSION_VALUE_HERE'}
  4.  
  5. q = requests.get('https://musescore.com/user/5174461/scores/3659386', cookies=cookies)
  6.  
  7. soup = bs4.BeautifulSoup(q.text)
  8.  
  9. jsondata_raw = soup.findAll('div', {'class': 'js-store'})[0]['data-content']
  10.  
  11. jsondata = json.loads(jsondata_raw)
  12.  
  13. print(jsondata['store']['page']['data']['type_download_list'])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement