chukhraiartur / seo-keyword-research-tool

Python SEO keywords suggestion tool. Google Autocomplete, People Also Ask and Related Searches.
MIT License
109 stars 19 forks source link

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

Open mjavedgohar opened 1 year ago

mjavedgohar commented 1 year ago

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 commented 1 year ago

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.