Live data from Hacker News

Tracking supermarket prices with Playwright

sakisv.net

151–160 of 213 posts

Re: Tracking supermarket prices with Playwright

#152
Can someone name the South-American country where they have a government price comparison website. Listing all products was required by law.

Someone showed me this a decade ago. The site had many obvious issues but it did list everything. If I remember correctly it was started to stop merchants pricing things by who is buying.

I forget which country it was.

Re: Tracking supermarket prices with Playwright

#153
post #85

Earlier quoted context omitted.

> Where does this lack ethics? I didn’t say it lacked ethics, I said I expected it to be driven by ethics. There’s a world of difference. I just mean it initially sounded like this was a protest project “for the people”, done in a way to take back power from big corporations, and was saddened to see it’s another generic commercial endeavour. > People are allowed to make money with their work. Which is why I said it’s…

I’m curious to know why you thought it “sounded like this was a protest project ‘for the people’”? I’ve read the parent post above and looked at the website and see nothing that would make me think it’s a “protest for the people”. It just seems a little strange when you then go on to say “strive to address… what was said, not what you imagine the other person said”.

> I’m curious to know why you thought it “sounded like this was a protest project ‘for the people’”?

See the sibling reply by another user, which I think explains it perfectly.

https://news.ycombinator.com/item?id=41179628

> It just seems a little strange when you then go on to say “strive to address… what was said, not what you imagine the other person said”.

It’s not strange at all if you pay attention to the words. I did not mischaracterise the author or their goals, I explained what I expected and what I felt regarding what I experienced reading the post and then the website.

In other words, I’m not attacking or criticising the author. I’m offering one data point, one description of an outside view which they’re free to ignore or think about. That’s it.

Don’t take every reply as an explicit agreement or disagreement. Points can be nuanced, you just have to make a genuine effort to understand. Default to not assuming the other person is a complete dolt. Or don’t. It’s also anyone’s prerogative to be immediately reactive. That’s becoming ever more prevalent (online and offline), and in my view it’s a negative way to live.

Re: Tracking supermarket prices with Playwright

#154
post #109

Earlier quoted context omitted.

I built one called https://bbdeals.in/ for India. I mostly use it to buy just fruits and its saved me about 20% of sending. which is not bad in these hard times. Building crawlers and infra to support it tool not more than 20 hours.

Does this work for HYD only?

Yeas. Planned to expand it to other manjor cities

Re: Tracking supermarket prices with Playwright

#155
> I went from 4vCPUs and 16GB of RAM to 8vCPUs and 16GB of RAM, which reduced the duration by about ~20%, making it comparable to the performance I get on my MBP. Also, because I'm only using the scraping server for ~2h the difference in price is negligible.

Good lesson on cloud economics. Below certain threshold we get linear performance gain with more expensive instance type. It is essentially the same amount of spending but you would save time running the same workload with more expensive machine but for shorter period of time.

Re: Tracking supermarket prices with Playwright

#157
> My CI of choice is [Concourse](https://concourse-ci.org/) which describes itself as "a continuous thing-doer". While it has a bit of a learning curve, I appreciate its declarative model for the pipelines and how it versions every single input to ensure reproducible builds as much as it can.

What's the thought process behind using a CI server - which I thought is mainly for builds - for what essentially is a data pipeline?

Re: Tracking supermarket prices with Playwright

#158
> While the supermarket that I was using to test things every step of the way worked fine, one of them didn't. The reason? It was behind Akamai and they had enabled a firewall rule which was blocking requests originating from non-residential IP addresses.

Why did you pick Tailscale as the solution for proxy vs scraping with something like AWS Lambda?

Re: Tracking supermarket prices with Playwright

#159
post #75

Earlier quoted context omitted.

> I scrape even app and websites data And then try to sell it back to businesses, even suggesting they use the data to train AI. You also make it sound like there’s a team manually doing all the work. https://www.economizafloripa.com.br/?q=parceria-comercial That whole page makes my view of the project go from “helpful tool for the people, to wrestle back control from corporations selling basic necessities” to “just…

It’s almost like people try to do valuable services for others in exchange for money.

A good few people cant imagine doing anything for any other reason. The fascinating aspect is that (combined with endless rent seeking) everything gets more expensive and eventually people wont have time to do anything for free. What is also fascinating is that by [excessively] not accounting for things done for free people shall take them for granted. We are surrounded by useful things done for us by generations long gone.

I started thinking about this when looking at startup micro nations. Having to build everything from scratch turns out to be very expensive and a whole lot of work.

Meanwhile we are looking to find ways to sell the price label separately. haha

When I worked at a supermarket I often proposed to rearrange the shelves into a maze. One can replace the parking lot with a hedge maze with many entrances an exits from the building. Special doorways on timers and remote control so that you need only one checkout. Add some extra floors, mirrors and glass walls.

There are countless possibilities, you could also have different entrances and different exits with different fees, doorways that only open if you have all varieties of a product in your basket, crawling tunnels, cage fights for discounts, double or nothing buttons, slot machines to win coupons.

valuable services for others?

Re: Tracking supermarket prices with Playwright

#160
Nice article, enjoyed reading it. I’m Pier, co founder of https://Databoutique.com, which is a marketplace for web scraped data. If you’re willing to monetize your data extractions, you can list them on our website. We just started with the grocery industry and it would be great to have you on board.
Post reply on HN