Flatten repo structure: move crawler/ to root, remove vqa/ and immoweb/

The crawler subdirectory was the only active project. Moving it to the
repo root simplifies paths and removes the unnecessary nesting. The
vqa/ and immoweb/ directories were legacy/unused and have been removed.

Updated .drone.yml, .gitignore, .claude/ docs, and skills to reflect
the new flat structure.
This commit is contained in:
Viktor Barzin 2026-02-07 23:01:20 +00:00
parent e2247be700
commit eafbc1ac52
No known key found for this signature in database
GPG key ID: 0EB088298288D958
221 changed files with 70 additions and 146140 deletions

29
notifications.py Normal file
View file

@ -0,0 +1,29 @@
from abc import abstractmethod
import apprise
from functools import lru_cache
import os
class Surface:
@abstractmethod
def connection_string(self) -> str | None: ...
class Slack(Surface):
def connection_string(self) -> str | None:
return os.environ.get("SLACK_WEBHOOK_URL")
@lru_cache(maxsize=None)
def get_notifier(surfaces: list[Surface] | None = None) -> apprise.Apprise:
surfaces = surfaces or list[Surface]([Slack()])
obj = apprise.Apprise()
for surface in surfaces:
if conn := surface.connection_string():
obj.add(conn)
return obj
async def send_notification(body: str, title: str = "") -> bool:
notifier = get_notifier()
return await notifier.async_notify(body=body, title=title)