Advertisement
Guest User

Look at this SoundCloud pagination bullshit

a guest
Jul 22nd, 2014
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.32 KB | None | 0 0
  1. ❯ curl -s $SOUNDCLOUD_USER_INFO_URL | jq '.public_favorites_count'
  2. 411
  3.  
  4. for OFFSET in 0 50 100 150 200 250 300 350 400; do
  5. curl -s "${SOUNDCLOUD_LIST_FAVORITES_URL}&limit=50&offset=${OFFSET}" | jq '.[]|.title' | wc -l; done
  6.       50
  7.       49
  8.       49
  9.       50
  10.       48
  11.       50
  12.       48
  13.       50
  14.       11
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement