Created
October 3, 2019 03:07
-
-
Save quanganhdo/59a789c2003c015c4e0a02646a718040 to your computer and use it in GitHub Desktop.
Export tweets with locations to GPSVisualizer-compatible CSV
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| jq -r '["latitude", "longitude", "elevation", "name"], (.[] | select(.retweeted == false) | select(.geo != null) | [.geo.coordinates[0], .geo.coordinates[1], 0, .full_text + "\n\n" + .created_at]) | @csv' tweet.js > tweet.csv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment