docs: add justfile and rewrite README/CLAUDE.md for service architecture

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-06-05 15:34:21 +02:00
parent 86c4440576
commit 6babaa0166
4 changed files with 93 additions and 65 deletions
+8 -5
View File
@@ -1,8 +1,11 @@
#!/bin/bash
# Refresh HTML fixtures for provider parser tests.
# Usage: ./fetch-fixture <number>
set -euo pipefail
http --follow GET "https://gulasidorna.eniro.se/hitta:$1" > "fixtures/eniro/$1.html"
http --follow GET "https://www.hitta.se/vem-ringde/$1" > "fixtures/hitta/$1.html"
http --follow GET "http://konsumentinfo.se/telefonnummer/sverige/$1" > "fixtures/konsumentinfo/$1.html"
http --follow GET "http://telefonforsaljare.nu/telefonnummer/$1/" > "fixtures/telefonforsaljare/$1.html"
http --follow GET "http://vemringde.se/?q=$1" > "fixtures/vemringde/$1.html"
curl -sL -A "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7)" \
"https://www.hitta.se/vem-ringde/$1" \
-o "fixtures/hitta/$1.html"
echo "fixtures/hitta/$1.html: $(wc -c < "fixtures/hitta/$1.html") bytes"