Skip to content

Latest commit

 

History

History
42 lines (37 loc) · 1018 Bytes

README.md

File metadata and controls

42 lines (37 loc) · 1018 Bytes

Kotobati Scraper

Installing and configuring the app.

Please make sure that you have at least php version 8.1 and nodejs installed.

  1. clone this repo
    git clone https://github.com/shaheenfawzy/kotobati-scraper
  2. run the following to install the dependencies
    composer install
  3. copy .env.example to .env and the configure the database credentials
    cp .env.example .env
  4. generate application encryption key
    php artisan key:generate
  5. run the migrations
    php artisan migrate
  6. install npm packages and build assets
    npm install && npm run build
  7. run the app
    php artisan serve
  8. you now can access the app from you browser at http://localhost:8000

Features

  • you can start the scraper and scrape single book or number of pages of books from the terminal by running the following
php artisan scrape:books {url} --pages={number of pages to scrape}