Skip to content

Instantly share code, notes, and snippets.

View onurvarol's full-sized avatar
:octocat:
Work hard, play harder

Onur Varol onurvarol

:octocat:
Work hard, play harder
View GitHub Profile

Hi! I'm Onur Varol.

I am an Assistant Professor at the Sabanci University Faculty of Engineering and Natural Sciences and Principal Investigator at the VIRAL Lab. His research focuses on developing techniques to analyze online behaviors to improve individual well-being and address societal problems using online data.

I developed Botometer to detect social bots 🤖 on Twitter.

You can check out some other websites that I created to share my hobbies and interests

@onurvarol
onurvarol / delete_twitter_applications.py
Last active August 22, 2017 02:35
Delete Twitter's application keys to clean profile
import os, sys
import json
import uuid
import urllib2
from selenium.webdriver import Firefox#, PhantomJS
import selenium as sl
LIST_APP_PAGE = 'https://apps.twitter.com/app'
LOGIN_BEFORE_APP_PAGE = 'https://twitter.com/login?redirect_after_login=https%3A/apps.twitter.com/app'
@onurvarol
onurvarol / gist:ba101ebed3c9cd966d0e58f15932e999
Created April 6, 2017 22:06
Parse feature names in Fragile Families Challenge
def parse_codebook_data(fname):
fNames = dict()
with open(fname, 'r') as fl:
lstate = False
for line in fl:
if line.startswith('-----'):
lstate = True
else:
if lstate:
while ' ' in line:
Verifying that +onur is my openname (Bitcoin username). https://onename.com/onur
import os, sys
import subprocess, signal
import time
from bs4 import BeautifulSoup
import selenium as sl
from selenium.webdriver import Firefox, FirefoxProfile
URL = 'https://www.usefulservice.com/'
@onurvarol
onurvarol / centrality_challenge
Created September 20, 2013 05:45
Question from Fil: Centrality challenge: today as I was teaching about closeness and betweenness centrality in class, a student asked for an example of a network where the node with highest closeness centrality is not also the one with highest betweenness. I could not think of a simple example. Output of file: Closeness: ['a', 1, 2, 3, 4, 33, 11…
'''
Question from Fil:
Centrality challenge: today as I was teaching about closeness
and betweenness centrality in class, a student asked for an
example of a network where the node with highest closeness
centrality is not also the one with highest betweenness. I
could not think of a simple example. Anyone?
'''
import networkx as nx