Skip to content

Instantly share code, notes, and snippets.

@prichey
Last active November 3, 2016 05:07
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save prichey/cb161f121301ef4f2f22 to your computer and use it in GitHub Desktop.
Save prichey/cb161f121301ef4f2f22 to your computer and use it in GitHub Desktop.
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