Skip to content

Instantly share code, notes, and snippets.

View voidfiles's full-sized avatar

Alex Kessinger voidfiles

View GitHub Profile
@berg
berg / stream-dump.py
Last active December 13, 2015 21:48
Dump an App.net stream to the console. Useful for debugging.
import sys
import time
import json
import requests
endpoint = sys.argv[1]
while True:
r = requests.get(endpoint, stream=True, timeout=600)
@cuppster
cuppster / getcomics.py
Created January 30, 2013 06:18
Mini-framework for scraping web pages with python using PyQuery, decorators and generators.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys, re
import itertools
from functools import wraps
from pyquery import PyQuery as pq
class scrape: