Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import request
- # request with params example
- def main():
- paramdata = {"keywords": '"{}"'.format(query),
- "state": state.upper(),
- "costToCompleteRange": "{} TO {}".format(cost_to_complete_min, cost_to_complete_max),
- "APIKey": api_key,
- "max": max,
- "sortBy": api_sorting}
- response = requests.get(api_url, params=paramdata)
- print("Executed Query:\n{}".format(response.url))
- return response
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement