Thursday, December 22, 2011
For all the developers who have expressed interest in getting programmatic access to the search queries data for their sites in Webmaster Tools, we've got some good news. You can now get access to your search queries data in CSV format using a open source Python script from the webmaster-tools-downloads project. Search queries data is not currently available via the Webmaster Tools API, which has been a common API user request that we're considering for the next API update. For those of you who need access to search queries data right now, let's look at an example of how the search queries downloader Python script can be used to download your search queries data and upload it to a Google Spreadsheet in Google Docs.
Example usage of the search queries downloader Python script
- If Python is not already installed on your machine, download and install Python.
- Download and install the Google Data APIs Python Client Library.
-
Create a folder and add the
downloader.py
script to the newly created folder. -
Copy the
example-create-spreadsheet.py
script to the same folder asdownloader.py
and edit it to replace the example values forwebsite
,