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.pyscript to the newly created folder.
example-create-spreadsheet.pyscript to the same folder as
downloader.pyand edit it to replace the example values for