https://www.goodreads.com/api/index contains an example how to call json api by js
<script type="text/javascript">
function myCallback(result) {
alert('nb of reviews for book: ' + result.reviews.length);
}
var scriptTag = document.createElement('script');
scriptTag.src = "https://www.goodreads.com/book/isbn/0441172717?callback=myCallback&format=json&user_id=123456789";
document.getElementsByTagName('head')[0].appendChild(scriptTag);
</script>
To be frank, it is so strange to me that url could contains a callback function name. What's the secret here? Any relevant js document?
Anyway, it is a javascript example. If I want to use python requests
to do the same job. How and what should I do?
I am completely stuck here.
Thanks for your advice.