spotifyexport
spotifyexport copied to clipboard
use cursor instead of offset based pagination
https://github.com/plamere/spotipy/issues/652#issuecomment-901364283
Didn't know it supported cursor pagination, should use this for 'as_list' method
page = api_method(limit=50)
res: List[Json] = page['items']
while page['next']:
page = spotipy.next(page)
res.extend(page['items'])
return res