A serverless scraper for finding products on Uniqlo's website.
I needed a new winter jacket, but for some reason, the jacket I wanted kept dissapearing from Uniqlo's website. Since I value my time so much, I wrote this scraper.
The Lambda accepts a url and a string containing search terms. It performs a fuzzy search(-ish), and returns the products matching the search terms, from highest to lowest relevance.
You can pair the Lambda with something like AWS CloudWatch for regular scrapes, or AWS API Gateway if you need an endpoint.
Right after I started building this, I bought a different jacket. May that serve as a lesson to myself never to build silly things like this again.
npm install
npm install -g serverless
sls deploy
Example of a valid Lambda event argument with the required fields:
{
"url": "https://www.uniqlo.com/eu/en/men/outerwear/coats-jackets/wool-coats",
"searchTerms": "wool coat"
}
PRs accepted but you don't really want to.
MIT ©Rishi Speets
This software is not endorsed by, directly affiliated with, maintained, authorized, or sponsored by Uniqlo. All product and company names are the registered trademarks of their original owners. The use of any trade name or trademark is for identification and reference purposes only and does not imply any association with Uniqlo.