mirror of
https://github.com/timberjoegithub/GoogleScrape.git
synced 2026-07-22 00:19:48 +00:00
twitter working now (although it skips invalid
This commit is contained in:
@@ -279,7 +279,7 @@ def get_hastags(address, name, hashtype):
|
|||||||
ziptag = "#"+zip_code
|
ziptag = "#"+zip_code
|
||||||
if statetag == 'FL':
|
if statetag == 'FL':
|
||||||
statetag += ' #Florida'
|
statetag += ' #Florida'
|
||||||
fulltag = defaulttags+" "+citytag+" "+statetag+" "+ziptag
|
fulltag = defaulttags+" "+citytag+" "+statetag+" "+ziptag+" "
|
||||||
# 153 Sugar Belle Dr, Winter Garden, FL 34787
|
# 153 Sugar Belle Dr, Winter Garden, FL 34787
|
||||||
# inphotos[0].rsplit(r'/', 1)
|
# inphotos[0].rsplit(r'/', 1)
|
||||||
return (fulltag)
|
return (fulltag)
|
||||||
@@ -865,6 +865,7 @@ def post_to_x2(title, content, date, rating, address, picslist, instasession,out
|
|||||||
client_v2.create_tweet(text=status_message_short, media_ids=[media.media_id])
|
client_v2.create_tweet(text=status_message_short, media_ids=[media.media_id])
|
||||||
else:
|
else:
|
||||||
print ('Problem uploading video to twitter: ',media.processing_info['error'])
|
print ('Problem uploading video to twitter: ',media.processing_info['error'])
|
||||||
|
return False
|
||||||
except AttributeError as error:
|
except AttributeError as error:
|
||||||
print("AttributeError An error occurred:",error) # An error occurred:
|
print("AttributeError An error occurred:",error) # An error occurred:
|
||||||
time.sleep(env.facebooksleep)
|
time.sleep(env.facebooksleep)
|
||||||
@@ -914,6 +915,7 @@ def post_facebook3(title, content, date, rating, address, picslist, outputs):
|
|||||||
imgs_id.append(post_id['id'])
|
imgs_id.append(post_id['id'])
|
||||||
except AttributeError as error:
|
except AttributeError as error:
|
||||||
print(" An error occurred:",error)
|
print(" An error occurred:",error)
|
||||||
|
return False
|
||||||
time.sleep(env.facebooksleep)
|
time.sleep(env.facebooksleep)
|
||||||
print(' Facebook response: ',post_id)
|
print(' Facebook response: ',post_id)
|
||||||
return (True)
|
return (True)
|
||||||
|
|||||||
Reference in New Issue
Block a user