Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Got an error on Depth-limit for detailed results #6

Open
mjavedgohar opened this issue Sep 14, 2023 · 1 comment
Open

Got an error on Depth-limit for detailed results #6

mjavedgohar opened this issue Sep 14, 2023 · 1 comment

Comments

@mjavedgohar
Copy link

Hi @dimitryzub ,

I am trying this API to get detailed results but got an error on the depth limit parameter. can you help me to extract detailed results. and can we also get the statistics of these google searches e.g. number of times the terms/questions searches ??

CODE

keyword_research = SeoKeywordResearch(
query='moderna covid vaccine',
api_key=,
lang='en',
country='au',
depth_limit=2,
domain='google.com.au'
)

ERROR:
TypeError: SeoKeywordResearch.init() got an unexpected keyword argument 'depth_limit'

@ilyazub
Copy link

ilyazub commented Nov 23, 2023

You can pass the depth_limit to SeoKeywordResearch.get_related_questions, not a constructor.

keyword_research = SeoKeywordResearch(
  query='moderna covid vaccine',
  api_key="serpapi_api_key",
  lang='en',
  country='au',
  domain='google.com.au'
)

keyword_research.get_related_questions(depth_limit=2)

@mjavedgohar Please share your feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants