Skip to content

Instantly share code, notes, and snippets.

View igorbrigadir's full-sized avatar

Igor Brigadir igorbrigadir

View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@igorbrigadir
igorbrigadir / post_truth_news.txt
Created November 18, 2016 17:48
fake / satire / clickbait domains from multiple sources
13whez.com
2008andallthat.wordpress.com
21stcenturywire.com
24matin.ch
4by6.in
4kaweekin3steps.com
800whistleblower.com
8thsisterenergy.com
911blogger.com
911truth.org
@igorbrigadir
igorbrigadir / trump_followers_count.csv
Created October 1, 2016 19:41
Trump follower counts from tweet timestamps
We can't make this file beautiful and searchable because it's too large.
"tweet_created_at","followers_count"
"2012-08-08T20:22:21+00:00",2557208
"2013-01-31T14:26:00+00:00",2031080
"2013-01-31T14:52:56+00:00",2031090
"2013-01-31T15:48:03+00:00",2031106
"2013-01-31T15:49:50+00:00",2031108
"2013-01-31T15:50:21+00:00",2031108
"2013-01-31T15:50:53+00:00",2031107
"2013-01-31T15:52:09+00:00",2031107
"2013-01-31T15:52:51+00:00",2031108
@igorbrigadir
igorbrigadir / trump_tweet_ids
Created September 21, 2016 19:12
More trump tweets
1698308935
1701461182
1737479987
1741160716
1773561338
1776419923
1786560616
1796477499
1806258917
1820624395
@igorbrigadir
igorbrigadir / scrape-storify-stories.py
Created September 13, 2016 18:12
Download all Storify stories for a given user
#!/usr/bin/python
try:
import simplejson as json
except:
import json
import requests
import math
import sys
import argparse as ap
@igorbrigadir
igorbrigadir / location_test.json
Created March 17, 2016 18:43
Twitter Location Test
{"created_at":"Thu Mar 17 18:22:38 +0000 2016","id":710531807977062401,"id_str":"710531807977062401","text":"@bayer_julia sure I can! - could also pretend to post using an Android phone with manually set GPS with rooted phone + dev tools","truncated":false,"source":"\u003ca href=\"http:\/\/twitter.com\" rel=\"nofollow\"\u003eTwitter Web Client\u003c\/a\u003e","in_reply_to_status_id":710525197581848576,"in_reply_to_status_id_str":"710525197581848576","in_reply_to_user_id":827130210,"in_reply_to_user_id_str":"827130210","in_reply_to_screen_name":"bayer_julia","user":{"id":495430242,"id_str":"495430242","name":"Igor Brigadir","screen_name":"IgorBrigadir","location":"New York, USA","description":"PhD Student @insight_centre in UCD. #FutureOfNews, #TextMining, Topic Detection & Tracking, Summarization, Information Retrieval, mostly with Breaking News Data","url":"https:\/\/t.co\/hEyi3xTO7M","entities":{"url":{"urls":[{"url":"https:\/\/t.co\/hEyi3xTO7M","expanded_url":"https:\/\/www.insight-centre.org\/users\/igor-
@igorbrigadir
igorbrigadir / convert.R
Created March 1, 2016 18:32
Convert SPSS SAV or DTA files to CSV with R
library(foreign)
# SAV file?
write.table(read.spss("spss_data.sav", file="from_sav_data.csv", quote = FALSE, sep = ",")
# DTA file?
write.table(read.dta("spss_data.dta"), file="from_dta_data.csv", quote = FALSE, sep = ",")
@igorbrigadir
igorbrigadir / ankara.log
Created February 22, 2016 10:46
"ankara since:2016-02-16 until:2016-02-20" log
/search/tweets.json?q=ankara%20since%3A2016-02-16%20until%3A2016-02-20&count=100&result_type=mixed&with_twitter_user_id=true Ok: 521193
/search/tweets.json?q=ankara%20since%3A2016-02-16%20until%3A2016-02-20&max_id=700006862826119167&count=100&result_type=mixed&with_twitter_user_id=true Ok: 437520
/search/tweets.json?q=ankara%20since%3A2016-02-16%20until%3A2016-02-20&max_id=700006856966672383&count=100&result_type=mixed&with_twitter_user_id=true Ok: 442165
/search/tweets.json?q=ankara%20since%3A2016-02-16%20until%3A2016-02-20&max_id=700006850016759807&count=100&result_type=mixed&with_twitter_user_id=true Ok: 454854
/search/tweets.json?q=ankara%20since%3A2016-02-16%20until%3A2016-02-20&max_id=700006843536576511&count=100&result_type=mixed&with_twitter_user_id=true Ok: 443835
/search/tweets.json?q=ankara%20since%3A2016-02-16%20until%3A2016-02-20&max_id=700006835361857535&count=100&result_type=mixed&with_twitter_user_id=true Ok: 465101
/search/tweets.json?q=ankara%20since%3A2016-02-16%20until%3A2016-02-20&m
@igorbrigadir
igorbrigadir / ankara_2016-02-16_2016_02_20
Created February 22, 2016 10:38
ankara since:2016-02-16 until:2016-02-20
700006862826119168
700019339559354369
700026613312917505
700832232542441474
700832226850816000
700832226032926721
700832224854339585
700832214947340290
700832212292341761
700832211155689476
@igorbrigadir
igorbrigadir / diff_2014-08_2015_10
Created January 27, 2016 17:13
glove.840B.300d Diff
138701c138701
< ½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ 0.00049