Quick start

Quick start

This page will only show you how to get a full working scraper in a few seconds.

Install dependencies

$ npm install @crawlix/core @crawlix/puppeteer

Source: [/docs/getting-started#set-up](set up)

Set a working basic template

Go to our Github’s example and pretty much copy everything there into a new project.

The fastest way to do that, with a magical one-liner:

# Clones repository, saves the /example folder and deletes every other folder
sudo git clone https://github.com/xfontr/crawlix.git crawlix && sudo cp -r crawlix/packages/example my-scraper-project && sudo rm -r crawlix

Define selectors

// src/config/selectors.ts

Adapt the template to your needs

Scraping a list of items (without clicking each item)

// main.ts
scrapPage(() => scrapList((item) => scrapItem(item)));

Scraping a list of items (clicking each item)

// Guide in progress :)