Itebooks which is one of the popular sources for programming books.
They have exposed couple of REST Apis as GET request.
One of it is send request to it based on the book id.
Below is the code to get the details of the book:
They have exposed couple of REST Apis as GET request.
One of it is send request to it based on the book id.
Below is the code to get the details of the book:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
import urllib | |
response = urllib.urlopen('http://it-ebooks-api.info/v1/book/2279690981') | |
json_response = json.loads(response.read()) | |
print json_response |
No comments:
Post a Comment