added comments

This commit is contained in:
Joe Steele
2024-06-09 19:26:13 -04:00
parent fb22ae2707
commit 9590a3ef28
+3 -1
View File
@@ -407,7 +407,7 @@ def get_data(driver,outputs ):
# div:nth-child(2) > div > div.e07Vkf.kA9KIf > div > div > div.m6QErb.DxyBCb.kA9KIf.dS8AEf # div:nth-child(2) > div > div.e07Vkf.kA9KIf > div > div > div.m6QErb.DxyBCb.kA9KIf.dS8AEf
# > div.m6QErb > div:nth-child(3) > div:nth-child(2) > div > div:nth-child(4) > div.DU9Pgb # > div.m6QErb > div:nth-child(3) > div:nth-child(2) > div > div:nth-child(4) > div.DU9Pgb
# > span.kvMYJc # > span.kvMYJc
except Exception: except Exception as error:
score = "Unknown" score = "Unknown"
more_specific_pics = data.find_elements(By.CLASS_NAME, 'Tya61d') more_specific_pics = data.find_elements(By.CLASS_NAME, 'Tya61d')
@@ -437,6 +437,8 @@ def get_data(driver,outputs ):
update_db_row(name,"google",1,"forceall",outputs) update_db_row(name,"google",1,"forceall",outputs)
except Exception as error: except Exception as error:
print('Error writing business details from google maps : ',error) print('Error writing business details from google maps : ',error)
else:
print (' Post was already in database, skipping update unless you activate override')
pics= [] pics= []
pics2 = [] pics2 = []
# check to see if folder for pictures and videos already exists, if not, create it # check to see if folder for pictures and videos already exists, if not, create it