mashape python unirest library -
i'm trying use unirest library run api dmoz. code:
=========================================================================
import unirest response = unirest.get("https://enclout-dmoz.p.mashape.com/show.json?auth_token=something&url=www.nike.com", headers={ "x-mashape-key": "another_code" } ) html= response.body() print html
but error message: typeerror object 'dict' not callable.
access dict without brackets
html = response.body print html
Comments
Post a Comment