An open API service indexing awesome lists of open source software.

https://github.com/pushshift/tweet-id_components

Go program to extract tweet id components
https://github.com/pushshift/tweet-id_components

Last synced: 10 days ago
JSON representation

Go program to extract tweet id components

Awesome Lists containing this project

README

          

My first attempt at creating a Golang program to do something somewhat useful!

This will allow a bunch of tweet ids to be piped into it and it will extract the following components:

sequence_id
server_id
machine_id
datacenter_id
creation_time (milliseconds)

Example usage:

cat tweets.ndjson | jq '.id_str' | ./tweet -c all

Speed: Processes around one million ids per second (~60x faster than Python)