forked from Jefferson-Henrique/GetOldTweets-python
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathexporter_help_text.txt
More file actions
24 lines (20 loc) · 1.22 KB
/
Copy pathexporter_help_text.txt
File metadata and controls
24 lines (20 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
To use this script you can pass the following attributes:
username: Username of specific twitter account (without @)
since: The lower bound date (yyyy-mm-dd)
until: The upper bound date (yyyy-mm-dd)
querysearch: A query text to be matched
near: A reference location area from where tweets were generated
within: A distance radius from "near" location (e.g. 15mi)
maxtweets: The maximum number of tweets to retrieve
toptweets: Only the tweets provided as top tweets by Twitter (no parameters required)
output: A filename to export the results (default is "output_got.csv")
lang: Get tweets written in specific language
Examples:
# Example 1 - Get tweets by username [barackobama]
python Exporter.py --username "barackobama" --maxtweets 1
# Example 2 - Get tweets by query search "Receh" and language "Indonesia"
python Exporter.py --querysearch "Receh" --maxtweets 1 --lang "id"
# Example 3 - Get tweets by username and bound dates [barackobama, '2015-09-10', '2015-09-12']
python Exporter.py --username "barackobama" --since 2015-09-10 --until 2015-09-12 --maxtweets 1
# Example 4 - Get the last 10 top tweets by username
python Exporter.py --username "barackobama" --maxtweets 10 --toptweets