Skip to content

Instantly share code, notes, and snippets.

Insoleet /
Last active Dec 21, 2017
Module Yolland Bresson
import asyncio
import re
import aiohttp
import datetime
cookiess = {
"PHPSESSID": "27c4edb27fd34256ddabcf0c429ca540",
"lunetics_locale": "fr"
Insoleet /
Created Dec 10, 2015
Simulate some bad network connection
real_addr = socket.getaddrinfo
socket.getaddrinfo = lambda a,b,c,d,e,f: exec('raise socket.gaierror("[Errno -2] Nom ou service inconnu")') \
if random.choice([True, False]) else real_addr(a,b,c,d,e,f)