This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import tweepy | |
import time | |
import os | |
import sys | |
import json | |
import argparse | |
FOLLOWING_DIR = 'following' | |
MAX_FRIENDS = 200 | |
FRIENDS_OF_FRIENDS_LIMIT = 200 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)) |