Live data from Hacker News

Show HN: I scraped 25M Shopify products to build a search engine

searchagora.com

101–110 of 286 posts

Re: Show HN: I scraped 25M Shopify products to build a search engine

#101
post #72

Have Swedish family. Searched dala because family wants traditional Christmas ornaments. Sure enough, there were several results that were 10x cheaper than what I could find on the first page of Big Search Company. Great job!

Amazing, glad you were able to find it. I also just learned about what a "Dala" is :)

Re: Show HN: I scraped 25M Shopify products to build a search engine

#103
post #49

[flagged]

https://news.ycombinator.com/newsguidelines.html

I wouldn't be happy to hear someone calling something I worked on "dogshit" to be honest. I learned from his work today and appreciate his approach. It doesn't hurt to be kind.

Re: Show HN: I scraped 25M Shopify products to build a search engine

#104

Searching is slow (kinda expected that right now), but after clicking a product and then hitting back, I have to wait for the search again. Not at computer so I didn't check the headers, but maybe allow the client to cache the response for a short time so it doesn't need to load search results again.

Just upgraded the storage and put in a few fixes so it's working a bit faster now. Working on caching some responses locally as we speak. Great idea.

Re: Show HN: I scraped 25M Shopify products to build a search engine

#105
post #57

What was the process for scraping 25M products ? I have always used standard python tools like selenium, bs4 and the like. But I'm guessing none of these work at scale. Could you talk about your process and key bottlenecks at that scale a little bit ? Also, how much did it cost ? ______________ A recommendation for how to improve search. Your base captions will be pretty bad. You can use spot instances on a smaller G…

Great suggestions, looking into this right now. First time building something like this so definitely new to some of these tools. For scraping: Found that every Shopify store has a public JSON file that is available in the same route. The JSON file appears on the [Base URL]/products.json. For example, the store for Wild Fox has their JSON file available here: https://www.wildfox.com/products.json . Built a crawler in…

You’re spending $2k/mo run this?? Holy hell.

Re: Show HN: I scraped 25M Shopify products to build a search engine

#106

Earlier quoted context omitted.

You really didn't think about this. Search engine crawlers are specifically designed to ignore sites that have the right setups. In other words: they try to be good citizens of the web. Data scrapers on the other hand are known to steal others IP and use it to jump start their own services. When you do that you're using all the bandwidth of the site while devaluing everything they've built. They will have invested si…

hm in this case, he is driving business to these websites. Quite the opposite from OpenAI and scrapers you are talking about, no?

He is putting a high amount of stress on Shopify servers. OpenAI is already in trouble with data scraping practices. Hypothetically if this site becomes successful one day, people will do whatever it takes to become #1 on the search results page and will drive business to only a handful of companies.

Re: Show HN: I scraped 25M Shopify products to build a search engine

#107

Cool! But how did you get the initial dataset of 643,000+ Shopify stores (data as per your “About” page) in the first place, to then scrape the products from their /products.json feeds? Or did you just try a huge list of domain names at random?

Shopify shops always have /collections, /products, and /pages in their URL. If you have a regular Shopify site, you're not allowed to change them. I don't know if Shopify Plus clients can change them.

Shopify sites also have shop-name.com/products.json which has URLs that point to cdn.shopify.com

Re: Show HN: I scraped 25M Shopify products to build a search engine

#108

cool project. You might have notice, but there's a non-trivial amount of fraud on shopify (fake shops, info stealers, etc). Might be interesting to look at that dataset and explore a bit =) it's quite fascinating

I've definitely noticed that already. Any advice on how to spot that?

Another challenge is that there are products sold on the original site and third-party marketplaces, both of which could sell on Shopify. So need to find a way to automatically detect the type of store.

Re: Show HN: I scraped 25M Shopify products to build a search engine

#110

I like it. I need to be able to filter search to if it will deliver to my country. It desperately needs some indication that your action is being processed, like a spinner, when you search.

Absolutely. Working on a "ships to" filter and enhancing the 'price' filter. Also fixing the loading experience as we speak. Wasn't expecting this level of traffic so didn't account for slow server speed with the front-end experience.

Thanks! It is reasonably fast but slow enough that a cue is needed so I know the input triggered.
Post reply on HN