Have you ever wanted to track and assess your SEO efforts by seeing how they change your position in Google’s organic SERP? With this script you can now track and chart your position for any number of search queries and find the position of the site/page you are trying to rank.
This will allow you to visually identify any target keyword phrases that are doing well, and which ones may need some more SEO work.
This python script has a number of different components.
- SEOCheckConfig.py script is used to add new target search queries to the database.
- SEOCheck.py searches Google and saves the best position (in the top 100 results)
- SEOCheckCharting.py graph all the results
The charts produced look like this:
The main part of the script is SEOCheck.py. This script should be scheduled to run regularly (I have mine running 3 times per day on my webfaction hosting account).
For a small SEO consultancy business this type of application generates the feedback and reports that you should be using to communicate with your clients. It identifies where the efforts should go and how successful you have been.
To use this set of script you first will need to edit and run the SEOCheckConfig.py file. Add your own queries and domains that you’d like to check to the SETTINGS variable then run the script to load those into the database.
On either Mac OSX or Linux you can use crontab to schedule it.
To generate the Chart simply run the SEOCheckCharting.py script. It will plot all the results on one graph.
You can find and download all the source code for this in the HalOtis-Collection on bitbucket. It requires BeautifulSoup, matplotlib, and sqlalchemy libraries to be installed.