Skip to content

Instantly share code, notes, and snippets.

Ed Summers edsu

View GitHub Profile
@edsu
edsu / email.txt
Created Jun 30, 2020
received at info@docnow.io
View email.txt
How have you been?
I hope you, your family, and friends stay safe by taking the proper precuations
as we enter in to confusing and troubling times as we watch a worldwide
pandemic unfold with this Coronavirus.
Could there be something more deeper going on with all of this? Could we be
seeing the signs of the times unfolding? Could this be a door of opportunity
for people to open their hearts to what God has to say?
View payload.json
{
"globalObjects": {
"broadcasts": {},
"cards": {},
"lists": {},
"media": {},
"moments": {},
"places": {},
"topics": {},
"tweets": {
@edsu
edsu / top10-comparison.csv
Last active May 28, 2020
Comparing the top co-occurring tweets in two sets of #GeorgeFloyd tweets. A set of 100,000 tweets and a set of 1000 tweets.
View top10-comparison.csv
100k 1k
blacklivesmatter blacklivesmatter
justiceforgeorgefloyd justiceforgeorgefloyd
minneapolis minneapolis
minneapolisriots minneapolisriots
icantbreathe icantbreathe
blacklivesmatters georgefloydwasmurdered
georgefloydwasmurdered breonnataylor
racism ahmaudarbery
minneapolispd blacklivesmatters
@edsu
edsu / georgefloyd-hashtags.csv
Last active May 28, 2020
Hashtags counts in the last 116,901 tweets that use the hashtag #GeorgeFloyd.
View georgefloyd-hashtags.csv
hashtag count
georgefloyd 116901
blacklivesmatter 28047
justiceforgeorgefloyd 11167
minneapolis 9190
minneapolisriots 6193
icantbreathe 5380
blacklivesmatters 2792
georgefloydwasmurdered 2667
racism 2387
@edsu
edsu / user_mentions.py
Last active May 27, 2020
Collect tweet JSON for tweets that mention particular users.
View user_mentions.py
#!/usr/bin/env python3
"""
Listen for tweets mentioning particular users.
"""
import json
import twarc
twitter = twarc.Twarc()
View timeline-history.csv
user quotes retweets tweets total
doctorow 86 766 1678 2530
TalibKweli 910 286 466 1662
archillect 0 86 1114 1200
carlfranzen 82 872 30 984
nevali 177 334 264 775
DocDre 35 538 186 759
generativist 81 256 329 666
deray 20 585 61 666
tressiemcphd 211 211 213 635
View bucket-prefix-sizes.py
#!/usr/bin/env python3
import re
import boto3
from collections import Counter
from humanize import naturalsize
s3_client = boto3.client('s3')
View chatty-20200513090723-20200513174235.csv
user retweets tweets total
doctorow 39 130 169
carlfranzen 113 11 124
publicknowledge 74 40 114
byDVNLLN 48 36 84
socialistdogmom 2 76 78
Hungryghoast 60 18 78
blkwomenradical 54 15 69
dwallacewells 27 39 66
shaunking 60 5 65
View links.py
@edsu
edsu / tags.csv
Last active Apr 27, 2020
twarc search.log search 'endtheshutdown OR endlockdown OR endthelockdown OR operationgridlock' | utils/tags.py > tags.csv
View tags.csv
hashtag tweets
endthelockdown 13569
operationgridlock 4982
endtheshutdown 4736
coronavirus 3322
covid19 3256
lockdown 1621
endlockdown 1579
neilferguson 1390
endthelockdownnow 1306
You can’t perform that action at this time.