Skip to content

Commit fc9ae8f

Browse files
committed
Store tweets to files
1 parent 16d1efa commit fc9ae8f

File tree

5 files changed

+245
-139
lines changed

5 files changed

+245
-139
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
__pycache__/
33
*.py[cod]
44

5+
.idea
6+
57
# C extensions
68
*.so
79

README.md

+12
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,14 @@ tap search --consumer-key CONSUMERKEY --consumer-secret CONSUMERSECRET -q "miley
8181
tap search --consumer-key CONSUMERKEY --consumer-secret CONSUMERSECRET -ql "miley_fans" -v DEBUG
8282
```
8383

84+
Global options:
85+
86+
| Option | Description |
87+
|------------------------|------------------------------------------------|
88+
| --output | Output tweets to files. |
89+
| --interval | Interval in minutes when to create a new file. |
90+
91+
8492
Search options:
8593

8694
| Option | Description |
@@ -240,6 +248,10 @@ supervisorctl shutdown
240248
241249
# Changes #
242250
251+
v2.1.0:
252+
253+
- Allow saving tweets to files.
254+
243255
v2.0.6:
244256
245257
- Restart the stream if it closes.

requirements.txt

+3-2
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@ pymongo==3.3.1
22
oauthlib==2.0.0
33
requests==2.11.0
44
requests-oauthlib==0.7.0
5-
supervisor==3.3.1
6-
twython==3.4.0
5+
#supervisor==3.3.1
6+
twython==3.6.0
7+
six==1.14.0

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
dist = setup(
2020
name='twitter-tap',
21-
version='2.0.6',
21+
version='2.1.0',
2222
author='Janez Kranjc',
2323
description='Collect tweets to a mongoDB using either the Twitter search API or the streaming API.',
2424
long_description=long_description,

0 commit comments

Comments
 (0)