Teams up with Python Making it Easier to Download Search Query Info


python.pngGoogle has created and released Google Data API that allows users to download search query data in CSV format using Python script from the webmaster-tools-downloads project. This project was designed to make it easier for users to download their data. Google plans on releasing this type of functionality to the Webmaster Tools API in the near future, but this should hold people over for now.

To get you started Google has a quick tutorial on how to download and install what you need, and then create a spreadsheet that is sent to Google Documents automatically. Here is how to use the Python script.

  1. If Python is not already installed on your machine, download and install Python.
  2. Download and install the Google Data APIs Python Client Library.
  3. Create a folder and add the downloader.py script to the newly created folder.
  4. Copy the example-create-spreadsheet.py script to the same folder as downloader.py and edit it to replace the example values for "website," "email" and "password" with valid values for your Webmaster Tools verified site.
  5. Open a Terminal window and run the example-create-spreadsheet.py script by entering "python example-create-spreadsheet.py" at the Terminal window command line:
    python example-create-spreadsheet.py
  6. Visit Google Docs to see a new spreadsheet containing your search queries data.

If you'd like to simply download the .csv file without uploading the data to a Google spreadsheet you can use the example-simple-download.py instead of example-create-spreadsheet.py from the above example.

Goo...

TO READ THE FULL ARTICLE





Related Articles & Guides