Mario Zechner (@badlogic@mastodon.gamedev.place)
mastodon.gamedev.place
external-link
Today was ... interesting. If you followed me for the past months over on the shitbird site, you might have seen a bunch of angry German words, lots of graphs, and the occassional news paper, radio, or TV snippet with yours truely. Let me explain. In Austria, inflation is way above the EU average. There's no end in sight. This is especially true for basic needs like energy and food. Our government stated in May that they'd build a food price database together with the big grocery chains. But..

It would be nice to be able to bring to light the price gouging that is taking place in Canada with regards to grocery stores.

The project is Open source, so you might be able to leverage it for Canadian data. All you need is:

  • Understanding of the expected format for the project
  • Access to data from Canadian retailers. This can be acquired via APIs (these are usually free) or by scraping their sites.

At the bottom of the chain on mastodon the creator says they use the search APIs of the store websites. I wouldn’t have expected those to be easily accessible!

Daniel Quinn
link
fedilink
41Y

Yeah a lot of chains even have a documented, developer-friendly API. If that’s not available though, you can usually figure out the API just by looking at the calls your browser makes when visiting a page. Most sites use a REST API for catalog pages that’s then rendered out with JavaScript.

If that doesn’t work, then you can usually scrape everything with Selenium. It’s a little harder to do, but still quite manageable, though that usually has to be a background job, as it’s slow.

Create a post

What’s going on Canada?



Communities


🍁 Meta

🗺️ Provinces / Territories

🏙️ Cities / Local Communities

🏒 Sports

Hockey

Football (NFL)

  • List of All Teams: unknown

Football (CFL)

  • List of All Teams: unknown

Baseball

Basketball

Soccer


💻 Universities

💵 Finance / Shopping

🗣️ Politics

🍁 Social and Culture

Rules

Reminder that the rules for lemmy.ca also apply here. See the sidebar on the homepage:

https://lemmy.ca


  • 1 user online
  • 126 users / day
  • 256 users / week
  • 530 users / month
  • 1.99K users / 6 months
  • 1 subscriber
  • 5.7K Posts
  • 50.8K Comments
  • Modlog