Skip to content

Instantly share code, notes, and snippets.

@thinrhino
thinrhino / DeleteTweets.py
Last active August 29, 2015 14:15
A small script to delete all tweets from your twitter stream
# First download the twitter archive
# Get API_KEY and API_SECRET from developer.twitter.com
import os
import json
import glob
import base64
import requests
from requests_oauthlib import OAuth1Session

Keybase proof

I hereby claim:

  • I am thinrhino on github.
  • I am thinrhino (https://keybase.io/thinrhino) on keybase.
  • I have a public key whose fingerprint is 76EB 936C 5D76 6E82 E9A9 68FF 96C8 359B CC53 9C5F

To claim this, I am signing this object:

function FindProxyForURL(url, host)
{
if (dnsDomainIs(host, ".pandora.com"))
return "PROXY 199.189.84.217:3128"
if (dnsDomainIs(host, ".spotify.com"))
return "PROXY 54.246.92.203:80"
return "DIRECT"
}
from __future__ import division
from bs4 import BeautifulSoup as bs
import requests
import re
import time
from pymongo import MongoClient
from time import mktime
from datetime import datetime
import plotly.plotly as py
import plotly.graph_objs as go