Skip to content

Instantly share code, notes, and snippets.

View mattjaenicke's full-sized avatar

Matthias Jaenicke mattjaenicke

  • Lufthansa
View GitHub Profile
@mattjaenicke
mattjaenicke / twitter_network.py
Created March 19, 2016 00:00 — forked from mjcreativeventures/twitter_network.py
Process twitter data to generate an output file of relationships between twitter account
import glob
import os
import json
import sys
from collections import defaultdict
users = defaultdict(lambda: { 'followers': 0 })
for f in glob.glob('twitter-users/*.json'):
data = json.load(file(f))
@mattjaenicke
mattjaenicke / get_followers.py
Created March 18, 2016 23:59 — forked from mjcreativeventures/get_followers.py
Collect twitter followers
import tweepy
import time
import os
import sys
import json
import argparse
FOLLOWING_DIR = 'following'
MAX_FRIENDS = 200
FRIENDS_OF_FRIENDS_LIMIT = 200
@mattjaenicke
mattjaenicke / index.html
Created November 1, 2015 21:50
exercise1
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Bundesliga: Money does score goals</title>
<link href='http://fonts.googleapis.com/css?family=Lato' rel='stylesheet' type='text/css'>
<style>
body {
margin: 0;