Browse Source

Quick Fix to correct relative path of config file.

Miek Stagl 5 years ago
parent
commit
996578b7b4
2 changed files with 75 additions and 1 deletions
  1. 2 1
      index.py
  2. 73 0
      landsearch.log

+ 2 - 1
index.py

@@ -50,7 +50,8 @@ class Parameters:
     '''Parameters taken from config file'''
 
     def __init__(self, file='landsearch.conf'):
-        self.file = file
+        # print(path.dirname(__file__))
+        self.file = path.join(path.dirname(__file__), file)
         if not path.exists(self.file):
             raise FileNotFoundError("The config file cannot be opened", self.file)
         try:

+ 73 - 0
landsearch.log

@@ -573,3 +573,76 @@
 2020-09-24 11:13:54 INFO     Database Update Complete.
 2020-09-24 11:13:54 INFO     2 new listings found.
 2020-09-24 11:13:55 INFO     Emails sent to: ['M_Stagl@hotmail.com', ' stagl.mike@gmail.com']
+2020-09-24 22:04:47 DEBUG    Log level set to 10
+2020-09-24 22:04:47 DEBUG    {'types': ['land', 'farm', 'home', 'house'], 'county': ['Hall'], 'lower_price': '0', 'upper_price': '525000', 'lower_acres': '5', 'upper_acres': '15', 'type': ['farm', 'house', 'land'], 'lower_sqft': '', 'upper_sqft': '', 'lower_bedrooms': '', 'upper_bedrooms': ''}
+2020-09-24 22:04:47 DEBUG    Log level set to 10
+2020-09-24 22:04:47 DEBUG    {'types': ['land', 'farm', 'home', 'house'], 'county': ['Hall'], 'lower_price': '0', 'upper_price': '525000', 'lower_acres': '5', 'upper_acres': '15', 'type': ['farm', 'house', 'land'], 'lower_sqft': '', 'upper_sqft': '', 'lower_bedrooms': '', 'upper_bedrooms': ''}
+2020-09-24 22:04:47 INFO     getgmlsdata starting.
+2020-09-24 22:04:47 DEBUG    Scanning: Hall county
+2020-09-24 22:04:47 DEBUG    https://www.georgiamls.com/real-estate/search-action.cfm?cnty=Hall&lpl=0&lph=525000&acresL=5&acresH=15&sqftl=&sqfth=&orderBy=b&scat=1&sdsp=g&typ=af&typ=sd&typ=ll
+2020-09-24 22:04:47 DEBUG    Scanned: 3995 Falcon Pkwy
+2020-09-24 22:04:47 DEBUG    Scanned: 5461 Thompson Mill Rd
+2020-09-24 22:04:48 DEBUG    Scanned: 3196 Joe Parker Rd
+2020-09-24 22:04:48 DEBUG    Scanned: 6277 Lights Ferry Rd
+2020-09-24 22:04:48 DEBUG    Scanned: 3780 Hardy Rd
+2020-09-24 22:04:48 DEBUG    Scanned: 3533 Mcever Rd
+2020-09-24 22:04:49 DEBUG    Scanned: 3814 Bolding Rd
+2020-09-24 22:04:49 DEBUG    Scanned: 5555 Wg Robinson Rd
+2020-09-24 22:04:49 DEBUG    Scanned: 4422 Autry Rd
+2020-09-24 22:04:49 DEBUG    Scanned: 4768 Highland Circle
+2020-09-24 22:04:50 DEBUG    Scanned: 9373 Callus Mill Rd
+2020-09-24 22:04:50 DEBUG    Scanned: 3461 Thompson Bridge
+2020-09-24 22:04:51 DEBUG    Scanned: 5776 Conner Rd
+2020-09-24 22:04:51 DEBUG    Scanned: 2967 Beards Rd
+2020-09-24 22:04:51 DEBUG    Scanned: 5375 Price Rd
+2020-09-24 22:04:51 DEBUG    Scanned: 4496 B Clark Rd
+2020-09-24 22:04:52 DEBUG    Scanned: 4730 Clarks Bridge rd
+2020-09-24 22:04:52 DEBUG    Scanned: 6055 Walden Rd Unit: Lot 2
+2020-09-24 22:04:52 DEBUG    Scanned: 4857 Holiday Villa Dr
+2020-09-24 22:04:52 DEBUG    Scanned: 3792 Tanners Mill Rd
+2020-09-24 22:04:53 DEBUG    Scanned: 3323 Duckett Mill Rd
+2020-09-24 22:04:53 DEBUG    Scanned: 5960 Cornelia Highway
+2020-09-24 22:04:53 DEBUG    Scanned: 3122 Old Cornelia Hwy
+2020-09-24 22:04:53 DEBUG    Scanned: 5715 Oscar Gilstrap Rd
+2020-09-24 22:04:54 DEBUG    Scanned: 5315 Elrod Rd
+2020-09-24 22:04:55 DEBUG    Scanned: 3549 Martin Creek Dr
+2020-09-24 22:04:55 DEBUG    Scanned: 0 Old Cornelia Highway
+2020-09-24 22:04:55 DEBUG    Scanned: 3545 Martin Creek Dr
+2020-09-24 22:04:55 DEBUG    Scanned: 4995 Forest Dr
+2020-09-24 22:04:55 INFO     Completed search in Hall county. 29 total properties scanned.
+2020-09-24 22:05:00 DEBUG    No Database Connection.  Connecting to DB in check_db function.
+2020-09-24 22:05:00 INFO     Database Update Complete.
+2020-09-24 22:05:00 INFO     0 new listings found.
+2020-09-24 22:05:02 INFO     Emails sent to: ['M_Stagl@hotmail.com', ' stagl.mike@gmail.com']
+2020-09-24 22:08:54 DEBUG    Log level set to 10
+2020-09-24 22:08:54 DEBUG    {'types': ['land', 'farm', 'home', 'house'], 'county': ['Hall'], 'lower_price': '0', 'upper_price': '525000', 'lower_acres': '5', 'upper_acres': '15', 'type': ['farm', 'house', 'land'], 'lower_sqft': '', 'upper_sqft': '', 'lower_bedrooms': '', 'upper_bedrooms': ''}
+2020-09-24 22:08:54 DEBUG    Log level set to 10
+2020-09-24 22:08:54 DEBUG    {'types': ['land', 'farm', 'home', 'house'], 'county': ['Hall'], 'lower_price': '0', 'upper_price': '525000', 'lower_acres': '5', 'upper_acres': '15', 'type': ['farm', 'house', 'land'], 'lower_sqft': '', 'upper_sqft': '', 'lower_bedrooms': '', 'upper_bedrooms': ''}
+2020-09-24 22:08:54 INFO     getgmlsdata starting.
+2020-09-24 22:08:54 DEBUG    Scanning: Hall county
+2020-09-24 22:08:54 DEBUG    https://www.georgiamls.com/real-estate/search-action.cfm?cnty=Hall&lpl=0&lph=525000&acresL=5&acresH=15&sqftl=&sqfth=&orderBy=b&scat=1&sdsp=g&typ=af&typ=sd&typ=ll
+2020-09-24 22:08:55 DEBUG    Scanned: 3995 Falcon Pkwy
+2020-09-24 22:08:55 DEBUG    Scanned: 5461 Thompson Mill Rd
+2020-09-24 22:09:28 DEBUG    Log level set to 10
+2020-09-24 22:09:28 DEBUG    {'types': ['land', 'farm', 'home', 'house'], 'county': ['Hall'], 'lower_price': '0', 'upper_price': '525000', 'lower_acres': '5', 'upper_acres': '15', 'type': ['farm', 'house', 'land'], 'lower_sqft': '', 'upper_sqft': '', 'lower_bedrooms': '', 'upper_bedrooms': ''}
+2020-09-24 22:09:28 DEBUG    Log level set to 10
+2020-09-24 22:09:28 DEBUG    {'types': ['land', 'farm', 'home', 'house'], 'county': ['Hall'], 'lower_price': '0', 'upper_price': '525000', 'lower_acres': '5', 'upper_acres': '15', 'type': ['farm', 'house', 'land'], 'lower_sqft': '', 'upper_sqft': '', 'lower_bedrooms': '', 'upper_bedrooms': ''}
+2020-09-24 22:09:28 INFO     getgmlsdata starting.
+2020-09-24 22:09:28 DEBUG    Scanning: Hall county
+2020-09-24 22:09:28 DEBUG    https://www.georgiamls.com/real-estate/search-action.cfm?cnty=Hall&lpl=0&lph=525000&acresL=5&acresH=15&sqftl=&sqfth=&orderBy=b&scat=1&sdsp=g&typ=af&typ=sd&typ=ll
+2020-09-24 22:09:29 DEBUG    Scanned: 3995 Falcon Pkwy
+2020-09-24 22:09:29 DEBUG    Scanned: 5461 Thompson Mill Rd
+2020-09-24 22:11:24 DEBUG    Log level set to 10
+2020-09-24 22:11:24 DEBUG    {'types': ['land', 'farm', 'home', 'house'], 'county': ['Hall'], 'lower_price': '0', 'upper_price': '525000', 'lower_acres': '5', 'upper_acres': '15', 'type': ['farm', 'house', 'land'], 'lower_sqft': '', 'upper_sqft': '', 'lower_bedrooms': '', 'upper_bedrooms': ''}
+2020-09-24 22:11:24 DEBUG    Log level set to 10
+2020-09-24 22:11:24 DEBUG    {'types': ['land', 'farm', 'home', 'house'], 'county': ['Hall'], 'lower_price': '0', 'upper_price': '525000', 'lower_acres': '5', 'upper_acres': '15', 'type': ['farm', 'house', 'land'], 'lower_sqft': '', 'upper_sqft': '', 'lower_bedrooms': '', 'upper_bedrooms': ''}
+2020-09-24 22:11:24 INFO     getgmlsdata starting.
+2020-09-24 22:11:24 DEBUG    Scanning: Hall county
+2020-09-24 22:11:24 DEBUG    https://www.georgiamls.com/real-estate/search-action.cfm?cnty=Hall&lpl=0&lph=525000&acresL=5&acresH=15&sqftl=&sqfth=&orderBy=b&scat=1&sdsp=g&typ=af&typ=sd&typ=ll
+2020-09-24 22:11:39 DEBUG    Log level set to 10
+2020-09-24 22:11:39 DEBUG    {'types': ['land', 'farm', 'home', 'house'], 'county': ['Hall'], 'lower_price': '0', 'upper_price': '525000', 'lower_acres': '5', 'upper_acres': '15', 'type': ['farm', 'house', 'land'], 'lower_sqft': '', 'upper_sqft': '', 'lower_bedrooms': '', 'upper_bedrooms': ''}
+2020-09-24 22:11:39 DEBUG    Log level set to 10
+2020-09-24 22:11:39 DEBUG    {'types': ['land', 'farm', 'home', 'house'], 'county': ['Hall'], 'lower_price': '0', 'upper_price': '525000', 'lower_acres': '5', 'upper_acres': '15', 'type': ['farm', 'house', 'land'], 'lower_sqft': '', 'upper_sqft': '', 'lower_bedrooms': '', 'upper_bedrooms': ''}
+2020-09-24 22:11:39 INFO     getgmlsdata starting.
+2020-09-24 22:11:39 DEBUG    Scanning: Hall county
+2020-09-24 22:11:39 DEBUG    https://www.georgiamls.com/real-estate/search-action.cfm?cnty=Hall&lpl=0&lph=525000&acresL=5&acresH=15&sqftl=&sqfth=&orderBy=b&scat=1&sdsp=g&typ=af&typ=sd&typ=ll