Bazos.cz scraper built using Puppeteer used for obtaining search results as JSON.
npm run demo
to run a demo query iPhone in Prague 1 between 3000 and 6000 CZK
npm start -- search {query} {zip} -f {priceFrom} -t {priceTo}
for custom query (headless)npm start -- search {query} {zip} -f {priceFrom} -t {priceTo} -w
for custom query (non-headless)npm start -- -h
for the program helpnpm start -- search -h
for thesearch
command help
You can add --record
to have the script produce the screenshot.gif
animation.
Push the generated report back to the repo and set up GitHub Pages for the repository to show it on a live URL.
The search URL structure is likely to be more stable than the form DOM as Bazos might consider people who bookmark search results, but has no reason to care about the form DOM being stable for 3rd parties.
Find a way to capture the frames at a lower resolution to keep the size down.