Created
August 25, 2015 18:54
-
-
Save chowmean/71cdac6bc11020565f67 to your computer and use it in GitHub Desktop.
Getting details of product from flipkart using api.
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 requests | |
| product="MOBE8AHAT4SFH3PJ" | |
| url="https://affiliate-api.flipkart.net/affiliate/product/json?id=" | |
| url=url+product | |
| headers = {'Fk-Affiliate-Id': 'affliate_id','Fk-Affiliate-Token':'YOUR token'} | |
| r = requests.get(url, headers=headers) | |
| print r.content |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment