Forum Archive

Google search

ihf

Basic python query: I was trying to run google search script and I am getting an error that 'function' object has no attribute 'get'. Can anyone explain what is going on?

ccc

I proposed a fix in the comments section of the link above.

ihf

Thanks for fix. For my edification, I was trying to understand why this script ever worked (i.e., what changed?)

JonB

The older versions of the requests module has json as a parameter, not a function. Pythonista 1.5 brought us a more recent version.

ihf

Thank you @ccc and @JonB for both the fix and the explanation.