Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
umr-tetis
MOOD
mood-tetis-tweets-collect
Commits
5247a90b
Commit
5247a90b
authored
Jun 09, 2020
by
rdecoupe
Browse files
change tree of project
parent
247780a4
Changes
5
Hide whitespace changes
Inline
Side-by-side
.gitignore
View file @
5247a90b
#### Twitter Credentials ####
credentials.py
params/credentials.py
#### Log ####
log/collectweets.log
#### Virtual Env ####
venv/
#### IDE ####
...
...
collectTweets.py
View file @
5247a90b
...
...
@@ -40,7 +40,7 @@ def logsetup():
logger
=
logging
.
getLogger
()
logger
.
setLevel
(
logging
.
DEBUG
)
formatter
=
logging
.
Formatter
(
'%(asctime)s :: %(levelname)s :: %(message)s'
)
file_handler
=
RotatingFileHandler
(
'collectweets.log'
,
'a'
,
1000000
,
1
)
file_handler
=
RotatingFileHandler
(
'
log/
collectweets.log'
,
'a'
,
1000000
,
1
)
file_handler
.
setLevel
(
logging
.
DEBUG
)
file_handler
.
setFormatter
(
formatter
)
logger
.
addHandler
(
file_handler
)
...
...
@@ -55,7 +55,7 @@ if __name__ == '__main__':
logger
=
logsetup
()
# try import credentials of MOODTwitter account
try
:
import
credentials
from
params
import
credentials
except
ImportError
:
msg
=
'it seems there is no file named :"credentials.py"'
exitscript
(
logger
,
msg
)
...
...
accountsFollowed.csv
→
params/
accountsFollowed.csv
View file @
5247a90b
File moved
keywordsFilter.csv
→
params/
keywordsFilter.csv
View file @
5247a90b
File moved
template-credentials.py
→
params/
template-credentials.py
View file @
5247a90b
File moved
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment