mirror of
https://github.com/timberjoegithub/GoogleScrape.git
synced 2026-07-22 00:19:48 +00:00
fixed city state tags
This commit is contained in:
@@ -283,8 +283,14 @@ def get_hastags(address, name, hashtype):
|
|||||||
zip_code = addressdict[3]
|
zip_code = addressdict[3]
|
||||||
except:
|
except:
|
||||||
zip_code = '34787'
|
zip_code = '34787'
|
||||||
state = addressdict[2]
|
try:
|
||||||
city = re.sub( r'[^a-zA-Z]','',addressdict[1])
|
state = addressdict[2]
|
||||||
|
except:
|
||||||
|
state = 'Florida'
|
||||||
|
try:
|
||||||
|
city = re.sub( r'[^a-zA-Z]','',addressdict[1])
|
||||||
|
except:
|
||||||
|
city = 'WinterGarden'
|
||||||
if 'short' in hashtype:
|
if 'short' in hashtype:
|
||||||
defaulttags = '#'+name_no_spaces+' #foodie #food #joeeatswhat @timberjoe'
|
defaulttags = '#'+name_no_spaces+' #foodie #food #joeeatswhat @timberjoe'
|
||||||
else:
|
else:
|
||||||
@@ -866,7 +872,7 @@ def database_update_row(review_name, column_name, column_value, update_style, lo
|
|||||||
raise
|
raise
|
||||||
# else:
|
# else:
|
||||||
local_outputs['postssession'].commit()
|
local_outputs['postssession'].commit()
|
||||||
time.sleep(env.facebooksleep)
|
#time.sleep(env.facebooksleep)
|
||||||
return True
|
return True
|
||||||
|
|
||||||
##################################################################################################
|
##################################################################################################
|
||||||
@@ -1523,7 +1529,8 @@ def post_to_instagram2(title, content, headers, date, rating, address, picslist,
|
|||||||
if "montage.mp4" in loop:
|
if "montage.mp4" in loop:
|
||||||
outputmontage = loop
|
outputmontage = loop
|
||||||
break
|
break
|
||||||
if pathlib.Path.exists(outputmontage):
|
pathoutputmontage = outputmontage[1:-1]
|
||||||
|
if pathlib.Path.exists(pathoutputmontage):
|
||||||
try:
|
try:
|
||||||
duration, fps, (width, height)=with_moviepy(outputmontage)
|
duration, fps, (width, height)=with_moviepy(outputmontage)
|
||||||
if duration < 60:
|
if duration < 60:
|
||||||
|
|||||||
Reference in New Issue
Block a user