AI Data Extraction is an AI-powered tool designed to extract and collect structured data from websites. It includes a configurable logging system via the Loggable module, ensuring full traceability of the data extraction process.
Clone the repository and run the following command to install dependencies and prepare the environment:
bin/setupThis script will:
Install required Ruby gems via bundle install
Create any necessary folders or initial configuration
First setup the docker environment using:
bin/setupTo start the scraper, run:
bin/playThis will start the main scraping process and begin logging activity using the Loggable module. If a log file is specified, logs will be written there; otherwise, they will be printed to the console (stdout).
You can run commands like yarn, node, bundle, etc., using the bin/run script. This ensures that the correct environment and versions are used for the project.
Example:
bin/run yarn installThis will run yarn install within the project context. Project structure
bin/setup – Script to set up the project environment
bin/play – Entry point to run the scraper
bin/run – Wrapper to run commands in the docker environment