Skip to content

Instantly share code, notes, and snippets.

View ZacharyHampton's full-sized avatar

Zachary Hampton ZacharyHampton

View GitHub Profile
@ZacharyHampton
ZacharyHampton / customproxy.py
Last active May 25, 2022 00:52
AIOHTTP ClientSession Wrapper (proxy rotate on request)
import aiohttp
from aiohttp import client_exceptions
import os
import random
import time
class CustomClientSession(aiohttp.ClientSession):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)