Search code examples
javascriptpythongoogle-apps-scriptweb-scrapinggoogle-api-python-client

Pulling the number of keywords from Google Search results for a particular country to Google Sheets


Looking for solutions how to retrieve the data for a certain website - the number of keywords that a website has got in top 20 Google search results for a particular country.

I need to get the data to Google sheers like:

enter image description here

Need to understand from what to start. Is it possible to implement this with Python or JavaScript? Or may be something else?


Solution

  • In theory, any site (like SEMRush or ahrefs) would work as long as you can code a web scraper using something like Python's selenium or Node.js. Some sites like the Alexa Web Information Service provide APIs which simply the task. Once you have the data, you can use the Google Sheets API to automatically create a Google Sheet with the information you have.