Explore the Russian Troll Tweet Dump

Posted by Spencer on February 18th, 2018

NBC has published a database of the deleted Russian troll tweets. There’s even a nifty graph database for exploring them, Neo4j.

But what if you want to explore the data in your own PostgreSQL database? Here is some SQL to create the database and tables, import the CSV files, and convert text data to more convenient formats:

https://github.com/SpencerAP/democracy_sql

Tested on PostgreSQL 9.3.21, may require adaptation to work with other RDBMSs or versions. Enjoy!

Posted in Coding, Tech