Anonymous avatar Anonymous committed 277581c

Tirei credenciais do twitter do settings e atualizai readme

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

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'

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 = ''
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.