I am trying to define a google search with the AJAX interface using the very good function described here (A Martelli) Google Search from a Python App
........
query = urllib.urlencode({'q': searchfor})
....
If I define the variable searchfor = "big car"
, the query generated is big+car. However I want to generate the query "big car" (those two words ocurring together).
Q1) That is, I would like to define an explicit phrase in my query (in google I would enter the "phrase" within double quotes).
Q2) How can I define a query where I wxclude a certain term. (In google you enter the "-" sign).