Commits

pvalente  committed 277581c

Tirei credenciais do twitter do settings e atualizai readme

  • Participants
  • Parent commits 9249eac

Comments (0)

Files changed (4)

 Hi,
 
-You, fellow developer, might want to copy comofas_credentials_example.py to comofas_credentials.py, filling in the values you know will work.
+You, fellow developer, might want to do this:
 
-Then you may try to run comofas2.py and test.py
+1. Copy comofas_credentials_example.py to comofas_credentials.py, filling in the values you know will work.
+2. Enter a KEYWORD value in comofas_settings.py
+3. Then you may try to run comofas2.py and test.py
 
 comofas2.py creates a Comofas class and its purpose is to provide an (proper/funny,weird) answer for all questions tagged by the word comofas posted as tweets in Twitter website.
 
         """
         try:
             while (True):
+                
                 time.sleep(random.randint(15,30)*2)
                 feeds = self.get_feeds()
-
                 for feed in feeds:
                     if feed.get('id') in self.last_feeds:
                         continue

File comofas_credentials_example.py

     Copy this file to comofas_credentials.py and fill in your own twitter username and password to host the bot.    
 """
 
-twitter_username = 'fasassim'
-twitter_password = 'abc123'
+TWITTER_USERNAME = 'fasassim'
+TWITTER_PASSWORD = 'abc123'
 
 answers_appid='GwZLVv32'

File comofas_settings.py

 # dicionario com os ultimos users que postaram comofas
 # usado para fazer follow de novos usuarios
 LAST_USERS_SIZE=5
-
-TWITTER_USERNAME = ''
-TWITTER_PASSWORD = ''