dl/commands/biyao.py

11 lines
373 B
Python
Raw Normal View History

2021-05-13 15:26:05 +00:00
#!/usr/bin/env python3
import requests
for num in range(1, 111):
r = requests.get(
'https://api.soundcloud.com/resolve?url=https://soundcloud.com/biyao' + '%02d' % num + '/sets&client_id=dbadb7fde15d88f2f221db41794959ab'
).json()
if len(r) > 0 and 'errors' not in r:
for playlist in r:
print('%02d' % num + ' ' + playlist['title'])