Skip to content

Instantly share code, notes, and snippets.

@marioidival
Created May 10, 2015 18:04
Show Gist options
  • Select an option

  • Save marioidival/e192397f9428e554f342 to your computer and use it in GitHub Desktop.

Select an option

Save marioidival/e192397f9428e554f342 to your computer and use it in GitHub Desktop.
Mother's Day
# -*- coding: utf-8 -*-
from time import sleep
from random import choice
import tweepy
# The consumer keys can be found on your application's Details
# page located at https://dev.twitter.com/apps (under "OAuth settings")
CONSUMER_KEY = ""
CONSUMER_SCT = ""
# The access tokens can be found on your applications's Details
# page located at https://dev.twitter.com/apps (located
# under "Your access token")
ACCESS_TOKEN = ""
ACCESS_TOKEN_SECRET = ""
auth = tweepy.OAuthHandler(CONSUMER_KEY, CONSUMER_SCT)
auth.secure = True
auth.set_access_token(ACCESS_TOKEN, ACCESS_TOKEN_SECRET)
api = tweepy.API(auth)
# 24 words to describe your Mommy <3
words_mommy = [
"Amor",
"Bela",
"Braveza",
"Calmaria",
"Carinhosa",
"Companheira",
"Confiavel",
"Cuidadosa",
"Determinada",
"Educadora",
"Engraçada",
"Espontanea",
"Excepcional",
"Fiel",
"Firme",
"Genial",
"Gentil",
"Guerreira",
"Maravilhosa",
"Mãe",
"Sincera",
"Surpreendente",
"Vencedora",
"Zelosa",
]
# Your Mommy
MOMMY = "Dalva"
STATUS = "Minha mãe é {}! Feliz dias das mães, {}"
while True:
description = words_mommy.pop(
words_mommy.index(
choice(words_mommy)
)
)
api.update_status(status=STATUS.format(description, MOMMY))
if not words_mommy:
break
sleep(3600)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment