#!/usr/bin/python3 # Author: Michal Kodad import requests import sys import re import os def print_help(): print("Call me with `-ini` param", file=sys.stderr) sys.exit(1) hash_map = {} def process_content(root_url, path): global hash_map response = requests.get(f"{root_url}/{path}") if response.status_code != 200: print("----- Skipped ----- ", response.url, file=sys.stderr) return print("Processing page: ", response.url, file=sys.stderr) # odstranění všeho kromě tag div s hlavním obsahem (content) content = re.sub(r"^.*
", '', response.text, flags=re.DOTALL) content = re.sub(r"