- Organisiert eine Vielzahl von Skripten aus dem Root-Verzeichnis in thematische Unterordner, um die Übersichtlichkeit zu verbessern und die Migration vorzubereiten. - Verschiebt SuperOffice-bezogene Test- und Hilfsskripte in . - Verschiebt Notion-bezogene Synchronisations- und Import-Skripte in . - Archiviert eindeutig veraltete und ungenutzte Skripte in . - Die zentralen Helfer und bleiben im Root, da sie von mehreren Tools als Abhängigkeit genutzt werden.
35 lines
1.1 KiB
Python
35 lines
1.1 KiB
Python
|
|
import requests
|
|
from bs4 import BeautifulSoup
|
|
|
|
url = "https://www.igepa.de/zweih_gmbh_co_kg/ueber-uns/"
|
|
print(f"Fetching {url}...")
|
|
|
|
try:
|
|
headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36'}
|
|
response = requests.get(url, headers=headers, verify=False, timeout=15)
|
|
|
|
soup = BeautifulSoup(response.content, 'html.parser')
|
|
|
|
print("\n--- Searching for 'imp' in Href or Text ---")
|
|
found = False
|
|
for a in soup.find_all('a', href=True):
|
|
text = a.get_text().strip().lower()
|
|
href = a['href'].lower()
|
|
|
|
if "imp" in href or "imp" in text:
|
|
print(f"MATCH: Text='{text}' | Href='{href}'")
|
|
found = True
|
|
|
|
if not found:
|
|
print("No match for 'imp' found.")
|
|
|
|
print("\n--- Searching for '2h' specific links ---")
|
|
for a in soup.find_all('a', href=True):
|
|
href = a['href'].lower()
|
|
if "zweih" in href:
|
|
print(f"2H Link: {href}")
|
|
|
|
except Exception as e:
|
|
print(f"Error: {e}")
|