Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import requests, bs4, json
- cookies = {'mscom_new': 'YOUR_SESSSION_VALUE_HERE'}
- q = requests.get('https://musescore.com/user/5174461/scores/3659386', cookies=cookies)
- soup = bs4.BeautifulSoup(q.text)
- jsondata_raw = soup.findAll('div', {'class': 'js-store'})[0]['data-content']
- jsondata = json.loads(jsondata_raw)
- print(jsondata['store']['page']['data']['type_download_list'])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement