Comments (7)
But the variables do have the correct results.
from google-search-results-python.
Hi @hshi420, thank you for reaching out 🙂
- Could you please provide a full traceback or a screenshot of the error?
- Could you please provide a code snippet of your search
params
, or a screenshot? By searchparams
I meant this:
params = {
"api_key": "...",
"engine": "google",
"q": "Coffee",
"gl": "us",
"hl": "en"
}
- What API do you use? Google Search/Google Maps, etc?
I'll reopen this issue as we're not helped you yet 🙂
from google-search-results-python.
Hi @hshi420, thank you for reaching out 🙂
Could you please provide a full traceback or a screenshot of the error?
Could you please provide a code snippet of your search
params
, or a screenshot? By searchparams
I meant this:params = { "api_key": "...", "engine": "google", "q": "Coffee", "gl": "us", "hl": "en" }
- What API do you use? Google Search/Google Maps, etc?
I'll reopen this issue as we're not helped you yet 🙂
Hi, the problem was on my end and the problem was solved, which was the reason why I closed the issue. Thank you!
from google-search-results-python.
@hshi420 Got it! That's great that the issue was solved 🙂 Thank you for clarifying, I'll close this issue then. Feel free to open if you need to.
from google-search-results-python.
I have the same issue! Even when I copy the code from the playground into my script I get this error.
I wrote the following:
params = {
"api_key": personal_key,
"engine": "google_maps",
"type": "search",
"google_domain": "google.com",
"q": "Coffee",
"hl": "en",
"ll": "@52.092876,5.104480,15.1z"
}
search = GoogleSearch(params)
results = search.get_dict()
from google-search-results-python.
The error is then the following: "error": "Missing query q
parameter."
}
from google-search-results-python.
Hey, @myrthebuckens 🙂
A few obvious questions for the sake of clarity:
- Did you
pip install
google-search-results
? - Did you
import
it? Didn't see in your code snippet. - If you're in the virtual environment, did you switch to it? E.g
$ source <virtual_env_name>/bin/activate
personal_key
is a global variable? Have you tried passing your SerpApi API key directly to"api_key"
underparams
? ("api_key": "1111adsad131"
)
Looking forward to your reply ✨
from google-search-results-python.
Related Issues (20)
- How to get "related articles" links from google scholar via serpapi? HOT 3
- [Pagination] Pagination isn't correct and it skips index by one HOT 1
- [Version] Update PyPi to include the most up-to-date version HOT 3
- Setting Timeout on Instantiation for GoogleSearch HOT 3
- .. HOT 2
- AttributeError during the import of the module: `initialized module 'serpapi' has no attribute 'GoogleSearch' (most likely due to a circular import)` HOT 5
- Exception not handled on SerpApiClient.get_json HOT 1
- [Feature Request] Add Async Implementation HOT 5
- [Discuss] Wrapper longer response times caused by some overhead/additional processing
- [Feature request] Make `async: True` do everything under the hood HOT 1
- How to add proxy and ssl certs while using the Search API? I am currently trying to access it via my corporate network. HOT 1
- requests.exceptions.SSLError: HTTPSConnectionPool(host='serpapi.com', port=443) HOT 1
- Python package should not include tests
- SSLCertVerificationError [SSL: CERTIFICATE_VERIFY_FAILED] error HOT 1
- Python 3.8+, Fatal Python error: Segmentation fault when calling requests.get(URL, params) with docker python-3.8.2-slim-buster/openssl 1.1.1d and python-3.9.10-slim-buster/openssl 1.1.1d HOT 1
- ImportError: cannot import name 'GoogleSearch' from 'serpapi' HOT 7
- Google lens can't find my image
- ImportError: cannot import name 'GoogleSearch' from 'serpapi' python 3.10 HOT 2
- get_html() Returns JSON Instead of HTML
- Different results from serpapi (Google Trends) versus Google Trends site HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from google-search-results-python.