collectTweets.py 578 Bytes
Newer Older
rdecoupe's avatar
rdecoupe committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/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")