Blogger Javascript with JSON error on Posts > 500

前端 未结 4 1949
情歌与酒
情歌与酒 2021-01-03 11:52

I would like to show random posts to my blogger.

I got a javascript from googling and tried it, but the number of random posts are not correct (should be 10 but some

4条回答
  •  星月不相逢
    2021-01-03 12:01

    While you set the max-results to 1000, the entries returned from the server will be capped to 500. It will still return the right total number of entries, however, as you can see if you access json.feed.openSearch$totalResults.$t.

    Source

提交回复
热议问题