Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .mcp.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"command": "uvx",
"args": [
"--from",
"git+https://github.com/hamiltoon/rhlunch.git",
"git+https://github.com/simon-ingelsson-sr/rhlunch.git",
"rhlunch-mcp"
]
}
Expand Down
283 changes: 148 additions & 135 deletions lunchscraper/cli.py

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lunchscraper/dish_classifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class DishClassifier:
VEGETARIAN_KEYWORDS = [
'vego', 'vegan', 'vegetarisk', 'halloumi', 'falafel', 'tempeh',
'tofu', 'vegansk', 'vegetariskt', 'bönor', 'linser', 'quinoa',
'seitan', 'svampgryta', 'svampsås', 'svampsoppa', 'rotselleri', 'selleri',
'seitan', 'svampgryta', 'svampsås', 'svampsoppa', 'rotselleri', 'selleri', 'salladsbar',
'kikärtor', 'grönsaker', 'vegoburgare', 'vegoköttbullar', 'chili med bönor',
'böff ala lindström', 'gnocchi', 'zucchini', 'aubergine', 'moussaka på vegofärs',
'långbakad rotselleri', 'skogssvamp', 'tempura svamp', 'tortellini', 'ricotta',
Expand Down
306 changes: 0 additions & 306 deletions lunchscraper/iss_scraper.py

This file was deleted.

15 changes: 7 additions & 8 deletions lunchscraper/mcp_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from typing import Optional, List, Dict, Any
from mcp.server.fastmcp import FastMCP

from .iss_scraper import ISSMenuScraper
from .nordrest_scraper import NordrestMenuScraper
from .kvartersmenyn_scraper import KvartersmenynsMenuScraper
from .nordrest_scraper import NordrestMenuScraper

Expand All @@ -16,7 +16,7 @@
'gourmedia': {
'name': 'Gourmedia',
'type': 'nordrest',
'url': 'https://www.nordrest.se/restaurang/gourmedia/#meny'
'url': 'https://www.nordrest.se/restaurang/gourmedia/'
},
'filmhuset': {
'name': 'Filmhuset',
Expand All @@ -25,9 +25,9 @@
},
'karavan': {
'name': 'Karavan',
'type': 'kvartersmenyn',
'url': 'https://karavan.kvartersmenyn.se/'
}
'type': 'nordrest',
'url': 'https://www.nordrest.se/restaurang/karavan/'
},
}


Expand All @@ -37,10 +37,9 @@ def _create_scraper(restaurant_key: str):
if not config:
raise ValueError(f"Unknown restaurant: {restaurant_key}")

if config['type'] == 'iss':
return ISSMenuScraper(
if config['type'] == 'nordrest':
return NordrestMenuScraper(
restaurant_url=config['url'],
restaurant_id=config['id'],
restaurant_name=config['name']
)
elif config['type'] == 'kvartersmenyn':
Expand Down
Loading
Loading