This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import hanzo.warctools.record as r | |
from http.client import HTTPResponse | |
from io import BytesIO | |
from bs4 import BeautifulSoup | |
from urllib.parse import urlparse | |
from collections import defaultdict | |
class FakeSocket(): | |
def __init__(self, response_str): |