Skip to content

Instantly share code, notes, and snippets.

View wilhelmklopp's full-sized avatar
🏃‍♂️
runtime data

Wilhelm Klopp wilhelmklopp

🏃‍♂️
runtime data
View GitHub Profile
@bradmontgomery
bradmontgomery / ShortIntroToScraping.rst
Created February 21, 2012 02:00
Really short intro to scraping with Beautiful Soup and Requests
import sys, marshal, functools, subprocess
child_script = """
import marshal, sys, types;
fn, args, kwargs = marshal.load(sys.stdin)
marshal.dump(
types.FunctionType(fn, globals())(*args, **kwargs),
sys.stdout)
"""