search
search(query: str, type: str = "search", pages: int = 1) -> Search
search(query: str, type: str = "search", pages: int = 1) -> Searchfrom searchx import Client
client = Client()
# Search for web pages with the query "Python programming"
search_results = client.search("Python programming")
for result in search_results:
print(f"URL: {result['url']}, Description: {result['description']}")
# Search for images with the query "cute cats"
image_results = client.search("cute cats", type="images", pages=2)
for result in image_results:
print(f"Image URL: {result['url']}")Last updated