Giter Site home page Giter Site logo

Comments (7)

hshi420 avatar hshi420 commented on May 20, 2024

But the variables do have the correct results.

from google-search-results-python.

dimitryzub avatar dimitryzub commented on May 20, 2024

Hi @hshi420, thank you for reaching out 🙂

  1. Could you please provide a full traceback or a screenshot of the error?
  2. Could you please provide a code snippet of your search params, or a screenshot? By search params I meant this:
params = {
  "api_key": "...",
  "engine": "google",
  "q": "Coffee",
  "gl": "us",
  "hl": "en"
}
  1. 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.

hshi420 avatar hshi420 commented on May 20, 2024

Hi @hshi420, thank you for reaching out 🙂

  1. Could you please provide a full traceback or a screenshot of the error?

  2. Could you please provide a code snippet of your search params, or a screenshot? By search params I meant this:

params = {

  "api_key": "...",

  "engine": "google",

  "q": "Coffee",

  "gl": "us",

  "hl": "en"

}
  1. 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.

dimitryzub avatar dimitryzub commented on May 20, 2024

@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.

myrthebuckens avatar myrthebuckens commented on May 20, 2024

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.

myrthebuckens avatar myrthebuckens commented on May 20, 2024

The error is then the following: "error": "Missing query q parameter."
}

from google-search-results-python.

dimitryzub avatar dimitryzub commented on May 20, 2024

Hey, @myrthebuckens 🙂

A few obvious questions for the sake of clarity:

  1. Did you pip install google-search-results?
  2. Did you import it? Didn't see in your code snippet.
  3. If you're in the virtual environment, did you switch to it? E.g $ source <virtual_env_name>/bin/activate
  4. personal_key is a global variable? Have you tried passing your SerpApi API key directly to "api_key" under params? ("api_key": "1111adsad131")

Looking forward to your reply ✨

from google-search-results-python.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.