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
629cf088
Commit
629cf088
authored
Jun 08, 2020
by
rdecoupe
Browse files
credentials import
parent
7679fcd1
Changes
3
Show whitespace changes
Inline
Side-by-side
.gitignore
View file @
629cf088
#### Twitter Credentials ####
credentials.py
#### Virtual Env ####
venv/
#### IDE ####
__pycache__/
.idea/
\ No newline at end of file
collectTweets.py
View file @
629cf088
#!/usr/bin/env python
"""
Connect to Twitter stream using Twitter API and filter tweets which have to be retrieved with
- Account to follow : accountsFollowed.csv
- Hashtag to follow : keywordsFilter.csv
To install and run this script : please follow instructions from README.md
"""
try
:
import
credentials
except
ImportError
:
print
(
'it seems there is no file named :"credentials.py"'
)
raise
ImportError
(
'it seems there is no file named :"credentials.py"'
)
if
__name__
==
'__main__'
:
print
(
"Collect tweets : start"
)
print
(
"Collect tweets : end"
)
\ No newline at end of file
template-credentials.py
0 → 100644
View file @
629cf088
consumer_key
=
'your_consumer_key'
consumer_secret
=
'your_consumer_secret'
access_token
=
'your_access_token'
access_token_secret
=
'your_access_token_secret'
\ No newline at end of file
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