Subversion Repositories SmartDukaan

Rev

Rev 1787 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1787 Rev 1789
Line 1... Line 1...
1
#!/usr/bin/python
1
#!/usr/bin/python
2
 
2
 
3
"""
3
"""
4
 
4
 
5
 This script accepts Domain, Search String and Google Locale arguments, then returns
5
 This script prints date of run, search-string, and position and page number where saholic result 
6
 which Search String results page for the Google Locale the Domain appears on.
-
 
7
 
-
 
8
 
-
 
9
 Usage example:
-
 
10
 
-
 
11
  rankcheck {domain} {searchstring} {locale}
6
 first appears in google search results.
12
 
-
 
13
 
-
 
14
 Output example:
-
 
15
 
-
 
16
  rankcheck geekology.co.za 'bash scripting' .co.za
-
 
17
   - The domain 'geekology.co.za' is listed in position 2 (page 1) for the search 'bash+scripting' on google.co.za
-
 
18
 
7
 
19
"""
8
"""
20
 
9
 
21
__author__    = "Willem van Zyl (willem@geekology.co.za)"
-
 
22
__version__   = "$Revision: 1.5 $"
-
 
23
__date__      = "$Date: 2009/02/10 12:10:24 $"
-
 
24
__license__   = "GPLv3"
-
 
25
 
-
 
26
import sys, pycurl, re
10
import sys, pycurl, re
27
import datetime
11
import datetime
28
 
12
 
29
# Search Strings to be monitored
13
# Search Strings to be monitored
30
SEARCH_STRINGS = [
14
SEARCH_STRINGS = [