Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. import request
  2. # request with params example
  3. def main():
  4. paramdata = {"keywords": '"{}"'.format(query),
  5. "state": state.upper(),
  6. "costToCompleteRange": "{} TO {}".format(cost_to_complete_min, cost_to_complete_max),
  7. "APIKey": api_key,
  8. "max": max,
  9. "sortBy": api_sorting}
  10. response = requests.get(api_url, params=paramdata)
  11. print("Executed Query:\n{}".format(response.url))
  12. return response
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement