A command line script to convert the locations in a Twitter archive download to GeoJSON.
Last active
December 19, 2015 19:09
-
-
Save blech/6004366 to your computer and use it in GitHub Desktop.
Notes for myself with jq/sed/etc
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
find . -name '2013*.js' -exec sed '1d' {} \; | \ | |
jq '.[] | {"type": "Feature", "geometry": { "type": "Point", "coordinates": .geo.coordinates}, 'properties': {'created_at': .created_at}}' \ | |
> ~/Desktop/twitter_2013.json |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment