mirror of
https://github.com/timberjoegithub/GoogleScrape.git
synced 2026-07-22 00:19:48 +00:00
fixed twitter
This commit is contained in:
@@ -469,7 +469,7 @@ def get_google_data(driver,outputs ):
|
||||
database_update_row(name,"googleurl",googleurl,"onlyempty",outputs)
|
||||
database_update_row(name,"place_id",place_id,"onlyempty",outputs)
|
||||
database_update_row(name,"googledetails",details,"onlyempty",outputs)
|
||||
database_update_row(name,"google","1","onlyempty",outputs)
|
||||
database_update_row(name,"google",True,"onlyempty",outputs)
|
||||
except KeyError as error:
|
||||
print('Error writing business details from google maps : ',error)
|
||||
else:
|
||||
@@ -852,6 +852,7 @@ def post_to_x2(title, content, date, rating, address, picslist, instasession,out
|
||||
# Message to post along with the video
|
||||
attrib_list = outputs['postssession'].query(Posts).filter(Posts.name == title).all()
|
||||
business_url = attrib_list[0].businessurl
|
||||
if business_url:
|
||||
wpurl = attrib_list[0].wpurl
|
||||
status_message = str(title) + ': My Review - '+ wpurl + '\n Business website: '+ \
|
||||
business_url
|
||||
@@ -1393,6 +1394,7 @@ def process_reviews(outputs):
|
||||
if env.web :
|
||||
#if writtento["web"] == 0 :
|
||||
try:
|
||||
if env.forcegoogleupdate:
|
||||
post_id, post_link = get_wordpress_post_id_and_link(processrow[1].value,outputs['web'] )
|
||||
if post_link:
|
||||
database_update_row(processrow[1].value,"wpurl",post_link,"forceall",outputs)
|
||||
|
||||
Reference in New Issue
Block a user