Skip to content

Instantly share code, notes, and snippets.

@prichey prichey/rainbow_wbc.py
Last active Nov 3, 2016

Embed
What would you like to do?
Comment heart emoji on WBC's most recent Vine video
import vinepy
def main():
vine = vinepy.API(username='XXXXX@XXXX.XXX', password='XXXXXXXX')
#say hello to westboro baptist
wbc_id = 984602341204725760
wbc_timeline = vine.get_user_timeline(user_id = wbc_id)
post = wbc_timeline[0]
# emoji hex
red_heart = '\xE2\x9D\xA4'
yellow_heart = '\xF0\x9F\x92\x9B'
green_heart = '\xF0\x9F\x92\x9A'
blue_heart = '\xF0\x9F\x92\x99'
purple_heart = '\xF0\x9F\x92\x9C'
rainbow_hearts = red_heart + yellow_heart + green_heart + blue_heart + purple_heart
try:
happy_comment = vine.comment(post_id = post.id, comment = rainbow_hearts, entities = [])
except:
print "failure"
if __name__ == '__main__':
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.