serpapi / serpapi-python

an official Python client library for SerpApi.
https://pypi.org/project/serpapi/
MIT License
46 stars 4 forks source link

General Updates #5

Closed kennethreitz closed 10 months ago

kennethreitz commented 11 months ago

Improving the main function signatures for compatibility with the old module, as well as cleaning up some naming conventions, etc.


The following three calls are now equivalent (/cc @hartator):

>>> s = serpapi.search(q="Coffee", location="Austin, Texas, United States")
>>> params = {"q": "Coffee", "location": "Austin, Texas, United States"}
>>> s = serpapi.search(**params)
>>> params = {"q": "Coffee", "location": "Austin, Texas, United States"}
>>> s = serpapi.search(params)

:sparkles: :cake: :sparkles:

hartator commented 10 months ago

@jvmvik Can you share the feedback you had here? Thank you!