CampusPulse / data-ingest

MIT License
0 stars 0 forks source link

Attempt to parse free food from descriptions #5

Open MoralCode opened 3 weeks ago

MoralCode commented 3 weeks ago

We need a free food Feed, this will help enable that

MoralCode commented 3 weeks ago

It should also be able to handle events labeled as costing $0, but specifically not free, I.e. https://www.rit.edu/brickcity/events/food-truck-rodeo-at-the-global-village-plaza ("purchase redeemable meal tickets")

MoralCode commented 3 weeks ago

Screenshot_20240826_203458

campusgroups may provide this too..... hmmm

edit: no apparrent API.

its not in the ICS dumps and i cant find a JSON api.

webscraping may be the best way to get this info

MoralCode commented 2 weeks ago

I think the best plan for how to approach this would be to add a function to https://github.com/CampusPulse/data-ingest/blob/main/event_data_ingest/runners/_shared/normalize.py that is able to take a description from an event and determine if its likely to have free food. this function could then be used in each of the normalizers for each of the data sources to determine the free food status as a backup in case there isnt one thats properly available as a standalone field from the source (which would ideally be preferable in cases like campusgroups in the above screenshot).

for something like this id probably also want to unit test it to be confident that it works as we don't want to create garbage/unreliable data (id rather not include the data and move the algorithm downstream (i.e. to the frontend where it doesnt affect EVERYONE who may be using this) rather than risk misleading people with bad information