Title: Throwing error on `serpapi.search` · Issue #17 · serpapi/serpapi-python · GitHub
Open Graph Title: Throwing error on `serpapi.search` · Issue #17 · serpapi/serpapi-python
X Title: Throwing error on `serpapi.search` · Issue #17 · serpapi/serpapi-python
Description: The developer team from a high-volume customer reached out that we should throw a proper error on the serpapi.search. I've suggested using a try-catch exception to handle errors. For example: try: search = serpapi.search(q="CoffeeMilk", ...
Open Graph Description: The developer team from a high-volume customer reached out that we should throw a proper error on the serpapi.search. I've suggested using a try-catch exception to handle errors. For example: try: ...
X Description: The developer team from a high-volume customer reached out that we should throw a proper error on the serpapi.search. I've suggested using a try-catch exception to handle errors. For example: t...
Opengraph URL: https://github.com/serpapi/serpapi-python/issues/17
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Throwing error on `serpapi.search`","articleBody":"The developer team from a high-volume customer reached out that we should throw a proper error on the `serpapi.search`.\r\n\r\nI've suggested using a try-catch exception to handle errors. For example:\r\n```\r\ntry:\r\n search = serpapi.search(q=\"CoffeeMilk\", api_key=\"\", engine=\"google\", location=\"Austin, Texas\", hl=\"en\", gl=\"us\")\r\n print(search)\r\n print(\"----------------\")\r\nexcept Exception as e:\r\n if \"429\" in str(e):\r\n print(\"You are being rate limited\")\r\n print(e)\r\n else:\r\n print(\"An error occurred\")\r\n```\r\n\r\n[Intercom](https://app.intercom.com/a/inbox/yzck75jr/inbox/shared/all/conversation/102910000072134?view=List)\r\n\r\nsidenote: we should probably update our `readme` to show how to handle errors.","author":{"url":"https://github.com/hilmanski","@type":"Person","name":"hilmanski"},"datePublished":"2024-11-14T04:53:56.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/17/serpapi-python/issues/17"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:921464a2-5a2e-ba44-87ea-92146baca7dc |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 97F2:118805:1241A29:173FC94:699256FF |
| html-safe-nonce | a21bdd076ce8711081efc7af01b1f43b8b82189311f4755de8847acd5b72e67c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5N0YyOjExODgwNToxMjQxQTI5OjE3M0ZDOTQ6Njk5MjU2RkYiLCJ2aXNpdG9yX2lkIjoiNzY2NTUwNjQ1MzExODE0NjMwMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 24c4f03aee1e5a258a81c7619e88fed8ebf484a68c5a4290986803f80f9e70ec |
| hovercard-subject-tag | issue:2657583235 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/serpapi/serpapi-python/17/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c871b2e74c6d120372f3f4fb1d7b31153361eca9f833ea46326ce63ae26b408d/serpapi/serpapi-python/issues/17 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c871b2e74c6d120372f3f4fb1d7b31153361eca9f833ea46326ce63ae26b408d/serpapi/serpapi-python/issues/17 |
| og:image:alt | The developer team from a high-volume customer reached out that we should throw a proper error on the serpapi.search. I've suggested using a try-catch exception to handle errors. For example: try: ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | hilmanski |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| go-import | github.com/serpapi/serpapi-python git https://github.com/serpapi/serpapi-python.git |
| octolytics-dimension-user_id | 34724717 |
| octolytics-dimension-user_login | serpapi |
| octolytics-dimension-repository_id | 472165377 |
| octolytics-dimension-repository_nwo | serpapi/serpapi-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 472165377 |
| octolytics-dimension-repository_network_root_nwo | serpapi/serpapi-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 848bc6032dcc93a9a7301dcc3f379a72ba13b96e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width