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

Popular posts from this blog

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -