Skip to content

Instantly share code, notes, and snippets.

@quanganhdo
Created October 3, 2019 03:07
Show Gist options
  • Select an option

  • Save quanganhdo/59a789c2003c015c4e0a02646a718040 to your computer and use it in GitHub Desktop.

Select an option

Save quanganhdo/59a789c2003c015c4e0a02646a718040 to your computer and use it in GitHub Desktop.
Export tweets with locations to GPSVisualizer-compatible CSV
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