You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.rst
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,8 +10,8 @@ Features
10
10
========
11
11
12
12
- Command-line utility is pipeable to other tools (e.g., ``jq``).
13
-
- Delivers a stream of data to the user for low in-memory requirements
14
13
- Automatically handles pagination of results with specifiable limits
14
+
- Delivers a stream of data to the user for low in-memory requirements
15
15
- Handles Enterprise and Premium authentication methods
16
16
- Flexible usage within a python program
17
17
- Compatible with our group's Tweet Parser for rapid extraction of relevant data fields from each tweet payload
@@ -42,15 +42,14 @@ Using the Comand Line Application
42
42
=================================
43
43
44
44
We provide a utility, ``twitter_search.py``, in the ``tools`` directory that provides rapid access to tweets.
45
-
Premium customers should use ``--bearer-token`` instead of ``--user-name`` and ``--password``.
45
+
Premium customers should use ``--bearer-token``; enterprise customers should use ``--user-name`` and ``--password``.
46
46
47
47
**Stream json results to stdout without saving**
48
48
49
49
.. code:: bash
50
50
51
51
python twitter_search.py \
52
-
--user-name <USERNAME> \
53
-
--password <PW> \
52
+
--bearer-token <BEARER_TOKEN> \
54
53
--endpoint <MY_ENDPOINT> \
55
54
--max-tweets 1000 \
56
55
--filter-rule "beyonce has:geo" \
@@ -115,7 +114,8 @@ It can be far easier to specify your information in a configuration file. An exa
115
114
116
115
When using a config file in conjunction with the command-line utility, you need to specify your config file via the ``--config-file`` parameter. Additional command-line arguments will either be *added* to the config file args or **overwrite** the config file args if both are specified and present.
117
116
118
-
example::
117
+
118
+
Example::
119
119
120
120
python twitter_search_api.py \
121
121
--config-file myapiconfig.config \
@@ -187,13 +187,13 @@ following cell for setup:
187
187
188
188
# set your environment variables here for premium access if you need to
0 commit comments