Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix specials + soups scraping code, add test #166

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

cirex-web
Copy link
Collaborator

@cirex-web cirex-web commented Feb 3, 2025

Goes card by card on the https://apps.studentaffairs.cmu.edu/dining/conceptinfo/Specials and sets whatever's in bold as the title. Everything else goes into the description. Extra spaces and newlines between characters are removed.

  • Adds a new test based on the failing parse from a few weeks ago.
  • Keys specials and soups on conceptId rather than name internally. (probably safer)

Live test:
image

Copy link

vercel bot commented Feb 3, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
dining-api ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 3, 2025 7:44pm

(acc, [key, val]) => ({
...acc,
[parseInt(key)]: val.build(),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything looks good. However, please rename here to be more clear. For example, conceptID, etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants