Skip to content

Instantly share code, notes, and snippets.

View smhaggerty's full-sized avatar

Shane Haggerty smhaggerty

View GitHub Profile
@nhumrich
nhumrich / oreilly.py
Created January 27, 2017 16:29
get free o'reilly books
"""Script to download free O'Reilly ebooks."""
import asyncio
import os
import re
import sys
import aiohttp
filename_matcher = re.compile(r'http://www.oreilly.com/(.*)/free/(.*).csp')
session = None