Comment heart emoji on WBC's most recent Vine video
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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