8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6cdb3bf commit 9a38f45Copy full SHA for 9a38f45
instaAPI-bot.py
@@ -109,6 +109,9 @@ def cleanup(): #logout and exit when CTRL + C is pressed
109
110
likes_per_tag = random.randint(min_likes_per_tag,max_likes_per_tag)
111
for element in media_id['items'][:likes_per_tag]:
112
+ if not element['caption']['text']:
113
+ print('No caption')
114
+ continue
115
for hashtag in re.split(r'#|\s', element['caption']['text']): #blacklist
116
if hashtag.strip().lower() in hashtag_blacklist:
117
print('Blacklisted hashtag "{}" found, skipping...'.format(hashtag))
0 commit comments