def main():
print('downloading pictures:')
for c, account in enumerate(top100,1):
print(c,'Pictures from today on '+account+'\'s Instagram')
picDownloader(account)
print('finding dominant colour')
milpy.directory_image_average(pictureFolder, '.jpg')
if len(sys.argv[1]) > 2:
api = make_twitter_api('InstaTopEmoji') #updates InstaTopEmoji twitterbot
for i, j in emojiCounter():
api.update_status('The most popular emoji on Celebrity Instagram yesterday was: '+ i +' which was used ' +str(j)+' times')
api = make_twitter_api('instaverage') #updates instaverage twitterbot
tweetpic = os.path.join(pictureFolder,'1_average_colors.jpg')
api.update_with_media(tweetpic, status='the dominant colours on Celebrity Instagram yesterday were...')
else:
print('no twitter password entered, terminating without tweeting')
评论列表
文章目录