Menu

Manufacturer, trader or a badminton shop? Scoring the suppliers behind an Alibaba search with Python
📰

Manufacturer, trader or a badminton shop? Scoring the suppliers behind an Alibaba search with Python

DEV Community·Gio Rich·16 days ago
#7A1J1Mdt
#dev#trading#supplier#search#alibaba
Reading 0:00
15s threshold

I built this actor; it's a paid tool on Apify with a free trial credit.

Search Alibaba for a product and you get 48 product cards per page. What you actually want to know is who is behind them: is it a factory or a trading company, has a third party inspected it, does it answer messages, does it sell much online, and is "yoga mat" really its business or just one listing in a sports-goods shop?

All of that is on the search cards already, spread over a dozen badges and tooltips. I wrote Alibaba Supplier Search Scraper to collapse a keyword's results into one row per supplier with those signals as plain fields. This post shows how to call it from Python and Node, what a row looks like, and a small scoring script that re-ranks suppliers by trust instead of by search position.

How it works

Alibaba's search page loads its results from a JSON endpoint.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.