This file contains 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 xml.etree.ElementTree as ET | |
import zipfile | |
from pathlib import Path | |
output_path = Path('output') | |
def parse_container(container_path): | |
root = ET.fromstring(container_path.open('r').read()) | |
ns = '{urn:oasis:names:tc:opendocument:xmlns:container}' | |
return [rootfile.attrib['full-path'] for rootfile in root.findall(f'./{ns}rootfiles/{ns}rootfile')] |
This file contains 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
from werkzeug.middleware.http_proxy import ProxyMiddleware | |
from werkzeug.wrappers import Request, Response | |
from werkzeug.wsgi import get_current_url, get_input_stream | |
from werkzeug.urls import url_parse | |
from werkzeug.http import is_hop_by_hop_header | |
from werkzeug.datastructures import EnvironHeaders | |
import socket | |
from http import client | |
import socks |
This file contains 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
# Krkr cg extractor | |
# Author: wlkz | |
# Dependency: tlg2png (https://github.com/vn-tools/tlg2png), PIL | |
# License: WTFPL | |
import json | |
import os | |
import shutil | |
from pathlib import Path |