Skip to content

Latest commit

 

History

16 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lunch

Today-first lunch view for five Lund places (Edison, Bricks, Smaka på Kina, Kantin, Eatery). A GitHub Action scrapes the menus on weekdays (Monday a few times through late morning, when the new week's menu lands, plus a midday pass Tue–Fri) and commits lt.json only when a menu actually changed; index.html renders whichever day it is.

Files

  • index.html — the page (fetches lt.json, falls back to a baked-in snapshot)
  • scraper.py — fetches the five sources, writes lt.json
  • lt.json — current menus (regenerated by the Action)
  • .github/workflows/lunch-scrape.yml — scheduled scrape + commit-on-change

Run locally

pip install requests beautifulsoup4 pdfminer.six
python scraper.py

Deploy

  1. Settings → Actions → General → Workflow permissions → Read and write
  2. Settings → Pages → Deploy from branch → main / root
  3. Actions tab → run Scrape lunch menus once
  4. Open https://qlik-pas.github.io/lunch/

If Eatery's PDF path changes, set EATERY_PDF_URL in the workflow. Kantin is scraped from kantinlund.se (robots-disallowed; swap to a mirror if it 403s).

About

Scrapers for lunch options around Ideon Lund

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages